Solved

Convert windows form to Web form

Posted on 2010-09-23
7
948 Views
Last Modified: 2013-11-26
Dear Experts,

I am a network engineer and new in programming, I have a windows form connected with SQL database and would like to convert it to ASP.net to be as a web page!!
is there a software tool to convert it to ASP.NET!!!!

and also would like to know how can I do what shown in a figure in ASP.NET!! this form is binding data with SQL and put it in the form as (in details data), but couldn't find it in ASP.net!!! any help Windows Form
0
Comment
Question by:yahyooz
7 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 33743178
Short answer: No, it is not possible.

Web forms separate their UI from their code, so you will have a .aspx and a .aspx.cs page.  Furthermore, windows controls come out of the System.Forms namespace and web controls come out of the System.Web namespace.

There are ways to share logic between windows and web, but there is no magic switch you can flip to make them work on both sides.



You can take a look at Converting WinForms => Web Forms using CodeDom
http://www.codeproject.com/KB/cs/winforms2webforms.aspx
0
 
LVL 8

Expert Comment

by:Mohit Vijay
ID: 33743631
If you dont want to convert whole application into asp.net (web starndard), you can create ActiveX of your this form and can easily embed into asp.net pages.

here is an example/tutorial (see accepted answer and other views)

http://www.velocityreviews.com/forums/t76877-how-to-create-activex-control-using-c-and-use-it-in-asp-net-webform.html
0
 
LVL 9

Expert Comment

by:richard_hughes
ID: 33745864
Hello yahyooz

If you are looking to create fields based upon a data source, have a look here:

http://www.asp.net/mvc
http://www.csharp-station.com/Tutorial.aspx

It is a learning curve, because as has been said before, you cannot convert a windows form to a web form directly.

The above link points you to a technology called MVC, this will help you to achieve your goal. There are tutorial videos in the link which will greatly help you.

The second link is there in case you are unfamiliar with C# which is the programming language you will need to use MVC.

Thank you very much,

Richard Hughes
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 33912200
The answer I gave is the correct one. What he wants to achieve is not possible.

So accept my comment (33743178) as an answer
0
 

Expert Comment

by:ModernMatt
ID: 33999744
No response to Expert objection. Initiating the closure process

ModernMatt
Experts Exchange Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now