|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WinForm as ASP.NET custom controlHi
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 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. -- Show quoteHide quotePatrice "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 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 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
Render and Image on a Button
I guess this can't be done can it ? Unhappy call to a 2nd dataItem in ItemTemplate of an asp:TemplateC Webcontrol Designer Awareness... Re: accessibility and asp:button Tool to monitor/trace all method calls? Register directive for custom web control in VS 2005 Beta 2 accessing a specific cotrol from web DataGrid control. Textbox question (v2.0) Page is not submitted using Client side validation of.NET validato |
|||||||||||||||||||||||