Solved

Convert windows form to Web form

Posted on 2010-09-23
7
947 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How Can I fix my MouseHover Event? 14 27
Trouble with References... 5 22
String manipulation 15 49
Set form below another form 3 26
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

23 Experts available now in Live!

Get 1:1 Help Now