Click here to Skip to main content
14,455,076 members
Rate this:
Please Sign up or sign in to vote.
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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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:

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
   
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.
Rate this:
Please Sign up or sign in to vote.

Solution 2

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
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100