Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.Net and Javascript and User Control help needed...

Status
Not open for further replies.

TPetersonFlorida

Programmer
Aug 8, 2003
76
US
I have a custom user control that has some text fields on it and this control is placed on another web form. One of the text fields on the user control needs to update another text field on the user control as they type. How do I do this? I have done this in classic ASP but can not seem to figure out how to do this in .Net.

thanks in advance
 
You will need to use Javascript to accomplish this much in the same way you would have had to in classic asp.... you will want to add the attribute to the textbox in question...to help yourself out pass as parameters the clientid of the two textboxes...

txt.Attributes.Add("OnKeyDown","yourhjavascriptfunction(txt.ClientId.ToString(),txt2.ClientId,ToString()));

I am sure you can handle it from here from your previous experience.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top