2 Replies - 4019 Views - Last Post: 09 September 2008 - 11:26 PM Rate Topic: -----

#1 vivekkapoor99  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-September 08

onTextChanged want to show the value in another textbox

Post icon  Posted 09 September 2008 - 02:14 AM

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??
Is This A Good Question/Topic? 0
  • +

Replies To: onTextChanged want to show the value in another textbox

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

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.
Was This Post Helpful? 0
  • +
  • -

#3 vivekkapoor99  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-September 08

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1