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
1465
$find not finding ...
posted

Hello.

I have a WebNumericEdit in a datalist in a Content form.

In the code behind I use the ClientID property of the WNE to write it out to the client script.

So the ID that's written out is ctl00_ContentPlaceHolder1_dlIncludedItems_ctl01_txtIncludedQty

But the actual ID that I need to reference in javascript is igtxtctl00_ContentPlaceHolder1_dlIncludedItems_ctl01_txtIncludedQty. That is, ctl00_ContentPlaceHolder1_dlIncludedItems_ctl01_txtIncludedQty with "igtxt" prepended to it.

I've hardcoded "igtxt" in the code-behind so that I can get at the object (WNE), but I don't like to hardwire anything.

So my question is, in the code-behind, what combination of properties, etc do I use to get the full name, igtxtctl00_ContentPlaceHolder1_dlIncludedItems_ctl01_txtIncludedQty?

Thanks in advance,

Mike