protected void txtInvoiceNo_TextChanged(object sender, EventArgs e)
{
txtRefNo.text = txtInvoiceNo.Text;
}
bt not able to show value in txtRefNo.text. Don't know why??
onTextChanged want to show the value in another textboxcan anyone help me in regarding that
Page 1 of 1
2 Replies - 3733 Views - Last Post: 09 September 2008 - 11:26 PM
#1
onTextChanged want to show the value in another textbox
Posted 09 September 2008 - 02:14 AM
Replies To: onTextChanged want to show the value in another textbox
#2
Re: onTextChanged want to show the value in another textbox
Posted 09 September 2008 - 01:55 PM
you seem to have a misunderstanding of how the web works. here are the basics...
a browser is nothing more than a tool to display HTML. a browser will send a request to a server, the server will send back an HTML response, and the browser displays that HTML code.
now, to do what you want, you will need to send a request to the server for the server to be able to run the code(do a postback). Since you are not, you will not see the text change.
you will need to use javascript or AJAX. doing a complete postback on a TextChanged event is not good. So you will need to use javascript or AJAX.
a browser is nothing more than a tool to display HTML. a browser will send a request to a server, the server will send back an HTML response, and the browser displays that HTML code.
now, to do what you want, you will need to send a request to the server for the server to be able to run the code(do a postback). Since you are not, you will not see the text change.
you will need to use javascript or AJAX. doing a complete postback on a TextChanged event is not good. So you will need to use javascript or AJAX.
#3
Re: onTextChanged want to show the value in another textbox
Posted 09 September 2008 - 11:26 PM
Thanx for reply
Can u tell how to do this in javascript
Can u tell how to do this in javascript
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|