i have 2 textbox controls inside a usercontrol TextBoxUC.ascx
i have a page.aspx that contains the usercontrol. how can i get a reference to each textbox using javascript from page.aspx?
i have 2 textbox controls inside a usercontrol TextBoxUC.ascx i have a page.aspx that
Share
do you have access to modify the user control? if so, you can add properties like Textbox1ClientID and Textbox2ClientID, which would return the client id for the respective controls.
user control c# :
js on the page:
if you can’t modify the user control, you’ll have to put he client id string together manually.
js: