473,765 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1387
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***@discussi ons.microsoft.c om> wrote in message
news:1C******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message news:1C******** *************** ***********@mic rosoft.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******** ******@tk2msftn gp13.phx.gbl...
"Cezar" <Ce***@discussi ons.microsoft.c om> wrote in message
news:1C******** *************** ***********@mic rosoft.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
3488
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 programs I will be writing), the old one is booted off (and its process ended). My master process is a test harness, which tests a script which as part of its functionality sends http GET messages. My test harness sets up an http server as a...
13
4833
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 been told it is not possible to access the serial ports from asp.net. The application is used to control custom hardware. The hardware is connected to a PC through serial ports. Our customer wants to control the hardware from a remote...
4
15828
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 sure how to open serial port from VB. Can anyone give me a little light? Really appreciated,
6
3123
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 to access a socket in a way fobidden by its access permissions."
4
3159
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 further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is inherited from a
10
3391
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. My crystal report looks weird because it is trying to show images from the crystalreportviewers10 virtual directory based on the current website running, which in this case is localhost:1169, but actuall the crystalreportviewers10 virtual...
6
9319
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 XP. I want to know how can i access(read and write data) on parallel port in XP. I have a program that do the same thing but in its documentation it says that it will not work on Windows XP.
3
1638
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. I have the following given in a form module: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;
0
1003
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 installing. so there is an option to modify also. but i want this port no read at run time and assign to it. if u take setup specifiying as 80 then it remains as 80 in other systems which has diffrent port.
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9835
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.