Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2167
Utility function for WedEditText / ASP.Net Text
posted

Which utility function do I use to get the ID of both an aps.net textbox and WebEditText control from a usercontrol template for a WebGrid within a WebPanel?

Parents
  • 28464
    Verified Answer
    posted

    Hello Robert,

    I m not completely sure I understand the complete setup. Do you mean the client-side ID that needs to be used in the ASPX for javascript? If this is the case, then something along the lines of:

    var clientID = "<%=  TextBox1.ClientID %>";

    will work for both asp:TextBox and WebTextEdit. If something else, then maybe you need to use the FindControl method to locate the textbox first and then inspect its ID property.

Reply Children
No Data