D
Dale
Greetings
I am building a composite control that populates a CheckBoxList with values from a database. A HtmlInputText control allows the user to type in the checkbox label value and have it checked in the list. All of the values are 3 characters in length, so I have a client-side onKeyUp checking the length of entry. If it is 3, then I do a postback. What I want to be able to do is have the text selected in the HtmlInputText after the postback. Right now, I am doing that with Page.RegisterStartupScript in my Render event. But I am having to use sScript += "Form1." & _filterText.ClientID & ".select();" to do it. I am concerned that if the developer changes the name of the form from Form1 to something else, that it will break. How do I get the actual form name
Thanks
Dale.
I am building a composite control that populates a CheckBoxList with values from a database. A HtmlInputText control allows the user to type in the checkbox label value and have it checked in the list. All of the values are 3 characters in length, so I have a client-side onKeyUp checking the length of entry. If it is 3, then I do a postback. What I want to be able to do is have the text selected in the HtmlInputText after the postback. Right now, I am doing that with Page.RegisterStartupScript in my Render event. But I am having to use sScript += "Form1." & _filterText.ClientID & ".select();" to do it. I am concerned that if the developer changes the name of the form from Form1 to something else, that it will break. How do I get the actual form name
Thanks
Dale.