asp.net - How to find an HTML Object in C# code behind -


i have 3rd part control(it com , not server control).

 <object id="sigplus1" classid="clsid:69a40da3-4d42-11d0-86b0-0000c025864a"              name="sigplus1" style="left: 0px; width: 544px; top: 0px; height: 86px">     <param name="_version" value="131095">        <param name="_extentx" value="14393">          <param name="_extenty" value="2275">             <param name="_stockprops" value="9"></param>          </param>         </param>     </param>    </object> 

in c# code behind use:

object o = (page.findcontrol("sigplus1") 

there no error o set null.

i know object has property named colormode, how can set in code behind

add runat="server" attribute <object> element. can find in code behind.

<object id="sigplus1" runat="server" ...> 

code behind

var sigplus1 = page.findcontrol("sigplus1"); 

or if control not in templated control can access directly via it's id without needing page.findcontrol().


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -