|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Error with Custom ControlI've created a simple custom control with a textbox and buttom on it.
When placed in .htm page an empty box shown in IE. I've added the site to trusted sites. still no luck. any ideas? Hi Nikolay:
You'll need to use .aspx files, not .htm files, to have the ASP.NET runtime process the control. Show quoteHide quote On 26 Mar 2005 14:14:19 -0800, "Nikolay Petrov" <johnt***@mail.bg> wrote: >I've created a simple custom control with a textbox and buttom on it. >When placed in .htm page an empty box shown in IE. > >I've added the site to trusted sites. >still no luck. > >any ideas? Scott, look at the url, i've given
also at: http://windowsforms.net/articles/iesourcing.aspx and also, i've tried it in aspx too, looks the same. Oh, that kind of control :)
Yes - it is possible, but configuration can be a pain. Did you do any code access security configuration? Does the control come from a single dll on the server or could there be some missing dependencies? Show quoteHide quote On 26 Mar 2005 14:25:09 -0800, "Nikolay Petrov" <johnt***@mail.bg> wrote: >Scott, look at the url, i've given >also at: http://windowsforms.net/articles/iesourcing.aspx > >and also, i've tried it in aspx too, looks the same. I've created the control by myself.
It is on my machine, the dll is in the folder where my htm page is. My local site is added to the thrusted sites zone, which is configured for the lowest security. When the page is loaded, an icon of broken image is displayed in the place of the control. Show quoteHide quote "Scott Allen" <scott@nospam.odetocode.com> wrote in message news:7vid4119blljooefkser0jm8a8r2kngmms@4ax.com... > Oh, that kind of control :) > > Yes - it is possible, but configuration can be a pain. Did you do any > code access security configuration? Does the control come from a > single dll on the server or could there be some missing dependencies? > > -- > Scott > http://www.OdeToCode.com/blogs/scott/ > > On 26 Mar 2005 14:25:09 -0800, "Nikolay Petrov" <johnt***@mail.bg> > wrote: > >>Scott, look at the url, i've given >>also at: http://windowsforms.net/articles/iesourcing.aspx >> >>and also, i've tried it in aspx too, looks the same. > Forgot to mension, it is an Windows Forms custom control.
It's is possible according to http://www.15seconds.com/issue/030610.htm Have you tried adding an object tag to your html page where the
control is hosted? The DLL that is created when you compile your windows form will need to be placed in the directory where you can reference it from your web server. Example <body> <object classid="http:MyControl.dll#MyControl.MyClass" VIEWASTEXT> <PARAM NAME="Param1" VALUE="Value1"> <PARAM NAME="Param2" VALUE="Value2"> </object> For simplicity sake I usually copy the DLL into the same directory as the web app. Hope this helps. Kind Regards, John Show quoteHide quote On 26 Mar 2005 14:14:19 -0800, "Nikolay Petrov" <johnt***@mail.bg> wrote: >I've created a simple custom control with a textbox and buttom on it. >When placed in .htm page an empty box shown in IE. > >I've added the site to trusted sites. >still no luck. > >any ideas?
REALbasic 5.5 free to VB6 Users Untili March 31 2005
Closing form... From VB.NET to Delphi7 convert. spice the boring default winforms treeview appearance up a bit... Help with SendMessage API calls e.Cancel = True in MDI Child Closing event Object reference not set to an instance of an object. Tabcontrol tabpagebutton orientation Form Load Event lock down file access |
|||||||||||||||||||||||