Home All Groups Group Topic Archive Search About

WinForm as ASP.NET custom control

Author
7 Jul 2005 1:16 PM
benc
Hi
Can anyone help to point me to some articles on how to host a winform written
in C# as an ASP.NET custom control? There is one by Jay Allen in MSDN Magazine
Jan2002, but couldn't get that example going.

Some help is much appreciated

Regards
Benc
QMatrix

Author
7 Jul 2005 1:26 PM
Patrice
Try :
http://www.15seconds.com/issue/030610.htm

You could also explain what happens. Note that exceptions are not shown when
the control is hosted in IE. You could explicitely use a try/catch block (in
case it would be that). I'm just started and it worked fine...

You could check also the IIS log to make sure the DLL file is properly read.

--
Patrice

Show quoteHide quote
"benc" <b***@discussions.microsoft.com> a écrit dans le message de
news:6D9D5071-FE7A-4894-ADB4-285A6E9A56C2@microsoft.com...
> Hi
> Can anyone help to point me to some articles on how to host a winform
written
> in C# as an ASP.NET custom control? There is one by Jay Allen in MSDN
Magazine
> Jan2002, but couldn't get that example going.
>
> Some help is much appreciated
>
> Regards
> Benc
> QMatrix
Author
11 Jul 2005 7:20 PM
Steve C. Orr [MVP, MCSD]
You can embed a windows forms control in an ASP.NET form with HTML like
this:


<OBJECT id="MyControl1" height="20" width="192"

classid="http:MyCustom.dll#MyNamespace.MyClassName">

<PARAM NAME="Backcolor" VALUE="blue">

You have an unsupported browser.

</OBJECT>



Here's more info:

http://samples.gotdotnet.com/quickstart/winforms/doc/WinFormsIeSourcing.aspx


--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quoteHide quote
"benc" <b***@discussions.microsoft.com> wrote in message
news:6D9D5071-FE7A-4894-ADB4-285A6E9A56C2@microsoft.com...
> Hi
> Can anyone help to point me to some articles on how to host a winform
> written
> in C# as an ASP.NET custom control? There is one by Jay Allen in MSDN
> Magazine
> Jan2002, but couldn't get that example going.
>
> Some help is much appreciated
>
> Regards
> Benc
> QMatrix