Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to add .dll windowform of vb.net2010(Of my existing project) to my new web application ASP.net .
so,need to know the procedure and the code details to run the added .dll file in webpage .
Posted

i don't know what you are trying to say whether its a invisible component or user control just add refrence to the DLL file and choose item from the toolbox to add the DLL file and just drag it from the toolbox
 
Share this answer
 
I'm not sure what are you trying to achieve but you can's use windows forms in an web application (that's for sure)!

Even if you will be able to Reference the library and write something like this:

C#
protected void btnClick_Click(object sender, EventArgs e)
{
    System.Windows.Forms.Form f = new System.Windows.Forms.Form();
    f.Show();
}


still you will achieve nothing except a rise in a memory consumption from IIS.

Cheers
 
Share this answer
 
Comments
tiru1 18-Sep-12 4:37am    
Thax Mario.
you guess right. I am having a project in webform vb2010 and i am using the .dll file of that project as a reference on my new web application of ASP.NET .But still i m not getting the right output on my browser. Getting the error :HTTP:404 File not Found" .
I am using a just a button to call the .dll file in web application.May be i am having an error to declare the path in http.I need the help how to declare the path in http.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900