By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,124 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

Error with Custom Control

P: n/a
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?

Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Forgot to mension, it is an Windows Forms custom control.

It's is possible according to http://www.15seconds.com/issue/030610.htm

Nov 21 '05 #2

P: n/a
Hi Nikolay:

You'll need to use .aspx files, not .htm files, to have the ASP.NET
runtime process the control.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 26 Mar 2005 14:14:19 -0800, "Nikolay Petrov" <jo******@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?


Nov 21 '05 #3

P: n/a
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.

Nov 21 '05 #4

P: n/a
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

On 26 Mar 2005 14:14:19 -0800, "Nikolay Petrov" <jo******@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?


Nov 21 '05 #5

P: n/a
It's set just like that. I am aware of this.

Nov 21 '05 #6

P: n/a
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" <jo******@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.


Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.