I create a windows forms control library project, And build it. then i want it's dll to my web project, for this i used object tag which can display it on page. I made reference of dll to my project.did the following coding.
<object id="conlib1" classid="clsid:{2483F435-673D-4FA3-8ADD-B51442F65349}"
codebase="Default.aspx" >
<param name="F:\sandyWindow\WincontrolLib\WincontrolLib\bin\Debug\WincontrolLib.dll" value="WincontrolLib.dll" />
</object>
although page is asking to install but after that my control should be displayed but nothing is to be shown there.
please give me some direction am i wrong anywhere. or how to show my windows conreol on asp.net web page.
If you place the dll on your bin folder.Using the dll on your code-behing file then use the filename followed by dot it will show all the method , properties, events available on the DLL file.
Maybe you made a WPF control you can use in silverlight,Please check the link below:
No I did not get what you tried to say. Actually i am a new guy in asp.net , I just want to ask you that How to consume window user control in asp.net web page in such a way that at client side it works fine with every issue.
I will let them to install .net framework at client side, then that windows user control should work properly.
Actually i am a new guy in asp.net , I just want to ask you that How to consume window user control in asp.net web page in such a way that at client side it works fine with every issue.
I used this coding in my usercontrol.vb , but still unable to access win control in web. I also have done it a strong named, versioning. but i am not getting where i am loosing. I want proper guidence bcoz my window user control contain openfile dialog and
save dialog.
sandeep dh.
0 Points
16 Posts
Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 02, 2010 06:11 AM|LINK
I create a windows forms control library project, And build it. then i want it's dll to my web project, for this i used object tag which can display it on page. I made reference of dll to my project.did the following coding.
<object id="conlib1" classid="clsid:{2483F435-673D-4FA3-8ADD-B51442F65349}"
codebase="Default.aspx" >
<param name="F:\sandyWindow\WincontrolLib\WincontrolLib\bin\Debug\WincontrolLib.dll" value="WincontrolLib.dll" />
</object>
although page is asking to install but after that my control should be displayed but nothing is to be shown there.
please give me some direction am i wrong anywhere. or how to show my windows conreol on asp.net web page.
Ming Xu - MS...
All-Star
25269 Points
2235 Posts
Microsoft
Re: Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 07, 2010 03:24 AM|LINK
Hi,
Here are some links ,showing how to Include a winforms user control in an asp.net web page.Hope it can help you.
http://www.15seconds.com/issue/030610.htm
http://codebetter.com/blogs/peter.van.ooijen/archive/2007/06/18/including-a-winforms-user-control-in-an-asp-net-web-page.aspx
http://bloggingabout.net/blogs/egiardina/archive/2007/04/25/embedding-net-code-and-windows-forms-controls-into-activex-controls.aspx
http://www.4guysfromrolla.com/articles/052604-1.aspx
http://www.codeproject.com/KB/dotnet/CSharpApplet.aspx?msg=1489483
Feedback to us
Develop and promote your apps in Windows Store
sandeep dh.
0 Points
16 Posts
Re: Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 08, 2010 06:05 PM|LINK
thank you very much, i'll go through all links content you sent me. i hope i'll get what i want.
thanx a lot ....
sandeep dh.
0 Points
16 Posts
Re: Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 08, 2010 07:14 PM|LINK
Now Atleast my windows control is getting displayed in localhost (but not with iis due to security problem i am trying to solve them)
, As with application development server it displayed bot not executing giving me a dialog box for microsoft .net configuration tool.
this is where i stopped. i want to sort out this problem...
give me some direction....
Ming Xu - MS...
All-Star
25269 Points
2235 Posts
Microsoft
Re: Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 09, 2010 02:33 AM|LINK
Hi
If you place the dll on your bin folder.Using the dll on your code-behing file then use the filename followed by dot it will show all the method , properties, events available on the DLL file.
Maybe you made a WPF control you can use in silverlight,Please check the link below:
http://msdn.microsoft.com/en-us/magazine/cc721611.aspx
It shows windows controls in Silverlight Application
Hope it can help you.
Feedback to us
Develop and promote your apps in Windows Store
sandeep dh.
0 Points
16 Posts
Re: Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 09, 2010 05:53 PM|LINK
No I did not get what you tried to say. Actually i am a new guy in asp.net , I just want to ask you that How to consume window user control in asp.net web page in such a way that at client side it works fine with every issue.
I will let them to install .net framework at client side, then that windows user control should work properly.
Ming Xu - MS...
All-Star
25269 Points
2235 Posts
Microsoft
Re: Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 10, 2010 02:38 AM|LINK
Hi,
Here are some sample,hope it can help you.
http://steveorr.net/articles/WinformControls.aspx
http://www.beansoftware.com/ASP.NET-Tutorials/Place-Windows-Control-To-Web-Form.aspx
Feedback to us
Develop and promote your apps in Windows Store
sandeep dh.
0 Points
16 Posts
Re: Windows forms Contrl library (dll) is not getting displayed in object tag in asp.net.
Sep 10, 2010 08:21 PM|LINK
HI,
I went thru ur first link which was great, but i was unable to get many points because of absence of practical example there . I tried a lot ....
Imports System.Security
Imports System.Security.Permissions
<Assembly: AllowPartiallyTrustedCallers()>
<Assembly: SecurityPermissionAttribute(SecurityAction.RequestMinimum, _
Flags:=SecurityPermissionFlag.Assertion)>
I used this coding in my usercontrol.vb , but still unable to access win control in web. I also have done it a strong named, versioning. but i am not getting where i am loosing. I want proper guidence bcoz my window user control contain openfile dialog and save dialog.
thanxx