473,513 Members | 2,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple ASP.NET Forms Question ASP Migration

jm
I have a .net form. based upon data submitted, another should page is
called (I think), sent the arguments, etc. I see I cannot use the
action= argument like old asp. so how do i call the other page with
the arguments?

What is the model here - coming from old ASP. Thank you.
Nov 18 '05 #1
3 1247
Same bascially,
Request object

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"jm" <jo*************@yahoo.com> wrote in message
news:c6*************************@posting.google.co m...
I have a .net form. based upon data submitted, another should page is
called (I think), sent the arguments, etc. I see I cannot use the
action= argument like old asp. so how do i call the other page with
the arguments?

What is the model here - coming from old ASP. Thank you.

Nov 18 '05 #2
jm,

You have three choices:

1. You could Response.Redirect to the new page and include the data in the
querystring.

2. You could use Server.Transfer to move to the next page. Server.Transfer
allows you to keep any posted querystring or form data intact as you call
another page. It's also faster than a response.redirect because instead of
the server sending the client browser a command to change pages the old page
is just swapped out for the new one. However, this means that if you
Server.Transfer a user from page1.aspx to page2.aspx in the browser's
address bar the user will still see the address as page1.aspx because the
browser has no way of knowing that page2.aspx was returned instead.

Here is a good article that explains one good way to use Server.Transfer:

http://aspnet.4guysfromrolla.com/articles/050802-1.aspx

3. Yet another way to handle things is to not transfer to another page at
all. Instead of using separate pages you place Panels on your main page.
Each panel takes the place of a page you would have posted data to. Hide all
the panels except the main one to begin with by setting their visibility
properties to False. Then when a link or button is clicked in a panel set
that panel's visibility property to False and the visibility property of the
new panel to display to True. Using this technique you constantly have
access to all object in every panel and can simulate movement from one page
to another all on a single page.
--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"jm" <jo*************@yahoo.com> wrote in message
news:c6*************************@posting.google.co m...
I have a .net form. based upon data submitted, another should page is
called (I think), sent the arguments, etc. I see I cannot use the
action= argument like old asp. so how do i call the other page with
the arguments?

What is the model here - coming from old ASP. Thank you.

Nov 18 '05 #3
Hi Jim,

In .NET the form submission paradigm has changed to a one (self-calling)
page sytem.

You can then use the Page object's "IsPostBack" method to determine if the
form has been submitted before. This lets you know when the page is being
called for the first time and when data was submitted.

You can still redirect over to another page with Response.Redirect or
Server.Transfer as in "Classic ASP", but unless you really need to use the
old 2 page system, you might do well to adopt the new way.
"jm" <jo*************@yahoo.com> wrote in message
news:c6*************************@posting.google.co m...
I have a .net form. based upon data submitted, another should page is
called (I think), sent the arguments, etc. I see I cannot use the
action= argument like old asp. so how do i call the other page with
the arguments?

What is the model here - coming from old ASP. Thank you.

Nov 18 '05 #4

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

Similar topics

9
2111
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count...
4
3962
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
1
2047
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables...
3
7003
by: Scott | last post by:
I have written windows applications using MFC for several years and have frequently used MFC techniques. Now I'm moving to C# .NET WinForm. Mostly C# books describes C# language (sometimes...
0
995
by: smith | last post by:
I think that this must have been asked a lot of times but googling isn't showing anything new or specific to potentials of ASP.Net2. I'm working for a relatively large eCommerce site, with tech...
1
3841
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
5
1865
by: Alberto Salvati | last post by:
Hi, List. My company has a VERY BIG product base on db2 udb v7.x. We want to di an upgrade to v9, but.... current db has a lot of procedure (cobol..!). Therefore, we've planned to rewrite this...
3
1645
by: Arne Beruldsen | last post by:
The migration from VB6 is anything but easy. Ok...I have an introductory form (start-up is via sub main) and then several succeeding forms which gather some info. As soon as the info is gathered...
1
2642
by: mousse122 | last post by:
I am trying to convert MS Access 2003 databases (*.mdb) to MS Access Projects (*.adp) and connecting to the new SQL table. Can anyone help me understand how to migrate the forms into the *adp? This...
3
4614
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
7259
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,...
1
7098
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
7523
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
5683
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,...
1
5085
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...
0
4745
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...
0
3232
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...
0
1592
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 ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.