How to find HTMLGENERIC CONTROL IN CODE BEHIND FILE
How to find HTMLGENERIC CONTROL IN CODE BEHIND FILE WITH AND WITHOUT RUNAT="SERVER"
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anubhav ChaudharyPosted Dec 10, 2014, 1:55 AM
At code behind only Server Side Controls can be find so you can't expect to get html controls without using runat="server" at code behind. Only those controls can be find which are having runat="server" no matter if it's a html control or server control.
Even after this if you want to find the control at the code behind then you can call the Script from code behind and from that Script you can call the HTML controls but here also one condition will be applied and that's those controls should be made at page prior to calling the script at code behind. Hope your problem and confusion will be solved by this ans.