473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to port a windows form project to ASP.NET

I have a quite simple windows form project. It uses one standard form, a
couple of simple controls including the tree control, and ADO.NET.
Is there a simple automated way to port, or at least try, the project to a
web forms project?
Thank you
Cezar Mart

Nov 19 '05 #1
3 1379
Nope....

WebForms and WinForms use totally different controls and even programming
mechanisms....

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Cezar" <Ce***@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
I have a quite simple windows form project. It uses one standard form, a
couple of simple controls including the tree control, and ADO.NET.
Is there a simple automated way to port, or at least try, the project to a
web forms project?
Thank you
Cezar Mart

Nov 19 '05 #2
"Cezar" <Ce***@discussions.microsoft.com> wrote in message news:1C**********************************@microsof t.com...
I have a quite simple windows form project. It uses one standard form, a
couple of simple controls including the tree control, and ADO.NET.
Is there a simple automated way to port, or at least try, the project to a
web forms project?


For many simple WinForms controls you should be able to find a ready
equivalent. However, there is no tree control in ASP.NET 1.x, so that'll
probably put a damper on your plans. Try checking out third-party tools
if your user interface needs a tree view.

The good news is most of your code you've written to manage your data
in ADO.NET will move right over, but dealing with state management and
the request/response nature of WebForms are probably going to be a bit
of a shock, at least initially.

No, there's really no automated way to por, owing to some of the major
differences that underpin each platform (Win vs. Web). If you need an
architecture that targets Win and Web clients equally, then you might want
to write your user interface to be more data-driven (i.e., get all control
placement and parameter settings out of the database and dynamically
add the appropriate control type to the form/page).
Derek Harmon
Nov 19 '05 #3
Microsoft of have a Webcontrol set that contains a tree control. This can
be downloaded from their site. Just FYI.

"Derek Harmon" <lo*******@msn.com> wrote in message
news:e1**************@tk2msftngp13.phx.gbl...
"Cezar" <Ce***@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
I have a quite simple windows form project. It uses one standard form, a
couple of simple controls including the tree control, and ADO.NET.
Is there a simple automated way to port, or at least try, the project to
a
web forms project?


For many simple WinForms controls you should be able to find a ready
equivalent. However, there is no tree control in ASP.NET 1.x, so that'll
probably put a damper on your plans. Try checking out third-party tools
if your user interface needs a tree view.

The good news is most of your code you've written to manage your data
in ADO.NET will move right over, but dealing with state management and
the request/response nature of WebForms are probably going to be a bit
of a shock, at least initially.

No, there's really no automated way to por, owing to some of the major
differences that underpin each platform (Win vs. Web). If you need an
architecture that targets Win and Web clients equally, then you might want
to write your user interface to be more data-driven (i.e., get all control
placement and parameter settings out of the database and dynamically
add the appropriate control type to the form/page).
Derek Harmon

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Pif Paf | last post by:
I am writing programs that will run as TCP servers. Briefly, I want to set up a TCP server on a port in such a way that if another server is already sitting on that port (both servers are Python...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
4
by: Ben Zhu | last post by:
I have a small project, which need use both RS232 port and excel for data plot. I considering use excel VB macro for the entire project. Although I used serial port extensively in MFC, I am not...
6
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
10
by: TS | last post by:
i just noticed the website i created in VS 2005 is running on a different port than the default. I see that it is running on the local web server, and also that the website i created isn't in IIS....
6
by: abhi | last post by:
Hello, I want to create a small project which will display scrolling text on LED that will be attached to Parallel port. I want to create this project in C language(possibly in Mingw) on Windows...
3
by: al-s | last post by:
I have a working VB.NET 2005 (.NET2.0) solution that works. When I translate the code modules, form modules to C# I get all sorts of build errors, much of which are related to scoping of methods....
0
by: joerozario | last post by:
Dear frineds, i have a created a setup project for a web application. in the web folder we have an option to set port no. when i set this as 80, this setup port no is shown in the form while...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.