473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error with Custom Control

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 19 '05 #1
7 859
Forgot to mension, it is an Windows Forms custom control.

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

Nov 19 '05 #2
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 19 '05 #3
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 19 '05 #4
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 19 '05 #5
It's set just like that. I am aware of this.

Nov 19 '05 #6
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 19 '05 #7
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.
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:7v********************************@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" <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 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Eric Sabine | last post by:
I've created a custom control (ascx) which contains a tree view, a drop down list, and a listbox. The custom control is included in a web form and at runtime, won't compile (I get the...
3
by: Michael | last post by:
Hi all.. I have a solution containing 5 projects, one of which is a custom control. In one of the projects, I dragged the .ascx file from the custom control project and dropped it onto a form....
8
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden...
0
by: Eachus | last post by:
Hello, I’m trying to create a web custom control. I’ve worked in asp.net extensively, but this is the first time I’ve attempted a web custom control. As a test, I created a control exactly...
0
by: Pavan | last post by:
My name is Pavan and I am a software engineer working on ASP .Net web development. Currently I am using .Net 2.0 Professional Edition to develop my web pages. I have a problem
4
by: Jon Paal | last post by:
I have a custom server control which renders some html. I want to capture some interim values generated by the control as it processes the data. is there a way to capture and retrieve the...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
7
by: Linda Liu[MSFT] | last post by:
Hi George, I have downloaded your sample solution and built it on my machine. I got a compilation error indicating that the type of "CustomResources" doesn't exist in the following xaml code: ...
3
by: skcsknathan001 | last post by:
I have 2 projects, and accessing a custom control , fron another project. Inside the custom control, it calls a function It compiles and when it runs I get a NullReference error message on the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.