开发者

Writing an ActiveX Control in .NET

plz check this tutorial

http://www.c-sharpcorner.com/UploadFile/dsandor/ActiveXInNet11102005040748AM/ActiveXInNet.aspx

how i use usercontrol in my asp.net website.

I am add reference in my asp.net website and use the tag but i 开发者_高级运维can not able to see that control


If i understand correctly.... a UserControl is a base class i.e. you must inherit from that to create your own implementations (or concrete types).

Once you've done that you're off and away!

EDIT: maybe another issue you're having is that you don't have a reference to System.Windows.Forms.dll in your project and you can't create your own UserControl implementation... not sure as the question is a little vague :(

EDIT 2: Ok, thinking about this further (and given your confusion still :) I think you might be needing something else... not ActiveX controls as the article you link to relates. I think you actually are interested in this and possibly this User controls in ASP.NET and ActiveX controls are very very different (nothing alike in fact!) I hope this helps shed some more light!


The tutorial you link to is from 2003, and a lot has changed in the meantime in terms of embedding controls and security issues.

As far as I know (related to IE8), an ActiveX has to implement IObjectSafety, and needs to be signed or the website needs to be trusted to execute it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜