c# - Need to get element id from .net COM winform control -


i have created .net usercontrol , exposed com control. can used in html web page object tag

html object tag looks like

<object id=control01 class=mycontrol classid=clsid:c2a76664-69fa-45c8-b052-7322b14cb206></object> 

and .net control code below

[classinterface(classinterfacetype.autodual), comvisible(true), guid("c2a76664-69fa-45c8-b052-7322b14cb206"), progid("mycontrol")] public partial class mycontrol : usercontrol {         private void mycontrol_load(object sender, eventargs e)         {             //need object id here "id=control01"          } } 

when load control in html page , called in browser. should element id in control class either in load event or constructor

please me on how html element id in .net control class.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -