1

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

V_B
  • 1,571
  • 5
  • 16
  • 37
  • Could you supply a bit more detail please? How are you using the tag, and what exactly happens? – Justin Aug 05 '11 at 12:06
  • i download that code from url u can see in link and that user control i want to use in my asp.net website i use tag and also give the reference of dll file but control is not able to load – V_B Aug 05 '11 at 12:14
  • Check out the answer to this question: http://stackoverflow.com/questions/5484326/deploy-c-activex-in-a-cab-for-internet-explorer-use/5484527#5484527 – RB. Aug 05 '11 at 13:48
  • But please give more details - what browser, what are you hoping to achieve, etc. – RB. Aug 05 '11 at 13:49

2 Answers2

1

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!

Paul Carroll
  • 1,523
  • 13
  • 15
0

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.

devio
  • 36,858
  • 7
  • 80
  • 143