PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
WinForms Control in a web page
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
WinForms Control in a web page
![]() |
WinForms Control in a web page |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I'm trying to use a WinForms control in a web page and am
having some difficulty. Perhaps someone here will know what I'm doing incorrectly... 1. I created a WinForms control and tested it in a WinForm and it works as expected. 2. I added the dll as a reference on my web form. 3. I embedded an object tag like: <object id="objPromoDesc" classid="http://localhost/WebApplication1/bin/MyControl.dll #MyNamespace.MyClass" width="528" height="72" VIEWASTEXT></object> 4. I set the virtual directory (and bin subdir) with execution permissions on "scripts". No errors occur, but the control doesn't render properly. Any ideas or steps I missed? Thanks in advance! |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Check out:
http://msdn.microsoft.com/msdnmag/i...rl/default.aspx - it may well help mark "Robert" <anonymous@discussions.microsoft.com> wrote in message news:080501c3a253$ea905a60$a101280a@phx.gbl... > I'm trying to use a WinForms control in a web page and am > having some difficulty. Perhaps someone here will know > what I'm doing incorrectly... > > 1. I created a WinForms control and tested it in a WinForm > and it works as expected. > 2. I added the dll as a reference on my web form. > 3. I embedded an object tag like: > <object id="objPromoDesc" > classid="http://localhost/WebApplication1/bin/MyControl.dll > #MyNamespace.MyClass" width="528" height="72" > VIEWASTEXT></object> > > 4. I set the virtual directory (and bin subdir) with > execution permissions on "scripts". > > No errors occur, but the control doesn't render properly. > Any ideas or steps I missed? > > Thanks in advance! |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

