473,583 Members | 3,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom form control in asp.net

Hi!

I have problem using simple custom form control on asp.net page. It does not
do much. Just label and button. (It is for training purpose).
My control works fine when I use it in my windows application but I have
problem with asp.net.
I use <object id="Cont1" classid="http:C ont.dll#Contr.S omeCont">
When I run my page for the first time it loads and works. When I change
something in that control, build .dll and upload to root dir of my web app I
can't load it and I have an error that my control is undefined or coult not
be find.

Is there somebody who had similar problem and solved it? How did you do
that?

Hubert
Aug 31 '07 #1
4 1695
If you made a winform custom control, you can't use it on an ASP.NET
page. You need to make a web custom control for that.
Steve C.
MCSD,MCAD,MCSE, MCP+I,CNE,CNA,C CNA
Yo mama wrote:
Hi!

I have problem using simple custom form control on asp.net page. It does not
do much. Just label and button. (It is for training purpose).
My control works fine when I use it in my windows application but I have
problem with asp.net.
I use <object id="Cont1" classid="http:C ont.dll#Contr.S omeCont">
When I run my page for the first time it loads and works. When I change
something in that control, build .dll and upload to root dir of my web app I
can't load it and I have an error that my control is undefined or coult not
be find.

Is there somebody who had similar problem and solved it? How did you do
that?

Hubert

Aug 31 '07 #2
You can host a Winform control inside an ASP.NET page using the object tag.
Of course, you'll need .NET client side.

You could aklso have a llok at the SilverLight plugin.

Not sure what is the problem. My first thought would be to check the IIS log
to see if the request fails for some reason...

--
Patrice

"Steve" <ln************ ********@gmail. coma écrit dans le message de news:
OO************* **@TK2MSFTNGP06 .phx.gbl...
If you made a winform custom control, you can't use it on an ASP.NET page.
You need to make a web custom control for that.
Steve C.
MCSD,MCAD,MCSE, MCP+I,CNE,CNA,C CNA
Yo mama wrote:
>Hi!

I have problem using simple custom form control on asp.net page. It does
not do much. Just label and button. (It is for training purpose).
My control works fine when I use it in my windows application but I have
problem with asp.net.
I use <object id="Cont1" classid="http:C ont.dll#Contr.S omeCont">
When I run my page for the first time it loads and works. When I change
something in that control, build .dll and upload to root dir of my web
app I can't load it and I have an error that my control is undefined or
coult not be find.

Is there somebody who had similar problem and solved it? How did you do
that?

Hubert

Aug 31 '07 #3
Problem is, that when I rebuild control after changing something in it that
control will not load to the page.
I think it is related to catching, but I don't know where to set up this.
Sometimes renaming dll helps.
I saw couple of examples. Authors can access control's public methods from
java scripts. I couldn't do that.
Did you do that in the past?

"Patrice" <http://www.chez.com/scribe/wrote in message
news:ep******** ******@TK2MSFTN GP02.phx.gbl...
You can host a Winform control inside an ASP.NET page using the object
tag. Of course, you'll need .NET client side.

You could aklso have a llok at the SilverLight plugin.

Not sure what is the problem. My first thought would be to check the IIS
log to see if the request fails for some reason...

--
Patrice

"Steve" <ln************ ********@gmail. coma écrit dans le message de
news: OO************* **@TK2MSFTNGP06 .phx.gbl...
>If you made a winform custom control, you can't use it on an ASP.NET
page. You need to make a web custom control for that.
Steve C.
MCSD,MCAD,MCSE ,MCP+I,CNE,CNA, CCNA
Yo mama wrote:
>>Hi!

I have problem using simple custom form control on asp.net page. It does
not do much. Just label and button. (It is for training purpose).
My control works fine when I use it in my windows application but I have
problem with asp.net.
I use <object id="Cont1" classid="http:C ont.dll#Contr.S omeCont">
When I run my page for the first time it loads and works. When I change
something in that control, build .dll and upload to root dir of my web
app I can't load it and I have an error that my control is undefined or
coult not be find.

Is there somebody who had similar problem and solved it? How did you do
that?

Hubert


Aug 31 '07 #4
I gave this a try and don't remember to have seen this issue (we finally
choosed a click once application rather than hosting a control in a web
page). Are you using a proxy server maybe ?

As I said earlier my first move would be to check the IIS log to see what is
the response (as you said it says the DLL is not found, I would have a look
to see if the http query result is a 404 or some other error).

Good luck.

--
Patrice

"Yo mama" <aa*@aaa.aaaa écrit dans le message de news:
YI************* *****@newssvr11 .news.prodigy.n et...
Problem is, that when I rebuild control after changing something in it
that control will not load to the page.
I think it is related to catching, but I don't know where to set up this.
Sometimes renaming dll helps.
I saw couple of examples. Authors can access control's public methods from
java scripts. I couldn't do that.
Did you do that in the past?

"Patrice" <http://www.chez.com/scribe/wrote in message
news:ep******** ******@TK2MSFTN GP02.phx.gbl...
>You can host a Winform control inside an ASP.NET page using the object
tag. Of course, you'll need .NET client side.

You could aklso have a llok at the SilverLight plugin.

Not sure what is the problem. My first thought would be to check the IIS
log to see if the request fails for some reason...

--
Patrice

"Steve" <ln************ ********@gmail. coma écrit dans le message de
news: OO************* **@TK2MSFTNGP06 .phx.gbl...
>>If you made a winform custom control, you can't use it on an ASP.NET
page. You need to make a web custom control for that.
Steve C.
MCSD,MCAD,MCS E,MCP+I,CNE,CNA ,CCNA
Yo mama wrote:
Hi!

I have problem using simple custom form control on asp.net page. It
does not do much. Just label and button. (It is for training purpose).
My control works fine when I use it in my windows application but I
have problem with asp.net.
I use <object id="Cont1" classid="http:C ont.dll#Contr.S omeCont">
When I run my page for the first time it loads and works. When I change
something in that control, build .dll and upload to root dir of my web
app I can't load it and I have an error that my control is undefined or
coult not be find.

Is there somebody who had similar problem and solved it? How did you do
that?

Hubert



Sep 3 '07 #5

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

Similar topics

1
3542
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be modular and work across forms and sub-forms. My previous code was taken from the Access Expert Solutions 97 (Leszynski) many years ago. As my database...
15
10935
by: Tinus | last post by:
Hello all, I've created a custom control that draws a monthly schedule (using the Draw function in C#). Basically it draws 31 boxes and writes the day number in every box. This works great. But I now want to show a different tooltip for every day. For now I found out that I can add a tooltip for the entire custom control
21
2085
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a string with comma delimited values. For example, if I were to render two text boxes. One with the Value Terry and the Other with the Value 'Burns'...
6
2661
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom controls periodically disappear from my project when I build it. First of I get the message about a missing dependency, then if I rebuild after that - the...
2
2577
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom controls periodically disappear from my
19
4902
by: Jamey Shuemaker | last post by:
I'm in the process of expanding my knowledge and use of Class Modules. I've perused MSDN and this and other sites, and I'm pretty comfortable with my understanding of Class Modules with the exception of custom Collection Classes. Background: I'm developing an A2K .mdb to be deployed as an .mde at my current job-site. It has several custom...
15
6499
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 accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then...
2
3247
by: ahmed.maryam | last post by:
Hello Everyone, I designed a custom control that is entirely covered by a picture box. I then dragged this custom control onto a windows form application (called main) and I need to handle mouse events in my main application. Specifically, when a user double clicks on my custom control I need to draw something on another picture box...
2
19442
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
2897
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
7894
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7821
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8172
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8320
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7929
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6577
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3814
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3841
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2328
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.