473,388 Members | 1,606 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,388 software developers and data experts.

Problem in new way of doing??

Hi,
As you all know that in classic ASP we when take the user inputs in a form
then when user click submit the form the page moves to the page specified in
action attribute of the form .
Now in Asp.Net how can we do this as the form always posts back to itself .i
want to move it to new page with all the values of the form which the user
fills.How you people manage this problem?
do i have to make a custom url and redirect it to next page but i think it
is not practical way of doing.
thanks in advance.
shahzad.
Nov 17 '05 #1
3 1475
You can use Server.Transfer to transfer control to the other Page. The
original Page class will still be available to the second, as the
HttpContext.Current.Handler.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"shahzad" <sh*********@hotmail.com> wrote in message
news:ON**************@TK2MSFTNGP10.phx.gbl...
Hi,
As you all know that in classic ASP we when take the user inputs in a form
then when user click submit the form the page moves to the page specified in action attribute of the form .
Now in Asp.Net how can we do this as the form always posts back to itself ..i want to move it to new page with all the values of the form which the user
fills.How you people manage this problem?
do i have to make a custom url and redirect it to next page but i think it
is not practical way of doing.
thanks in advance.
shahzad.

Nov 17 '05 #2
If you do a server.transfer and the new page has an HTML tag you will end up
with invalid HTML which 'could' cause a problem in browsers other than IE.
The alternative of using response.transfer exposes querystring info to the
user which is not desirable as they can easily tamper with it.

Is the best method then to use a session variable? The classic ASP emthod of
posting to another form seems far better.

any thoughts on this welcome.

"Kevin Spencer" <ke***@SPAMMERSSUCKtakempis.com> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
You can use Server.Transfer to transfer control to the other Page. The
original Page class will still be available to the second, as the
HttpContext.Current.Handler.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"shahzad" <sh*********@hotmail.com> wrote in message
news:ON**************@TK2MSFTNGP10.phx.gbl...
Hi,
As you all know that in classic ASP we when take the user inputs in a form then when user click submit the form the page moves to the page specified
in
action attribute of the form .
Now in Asp.Net how can we do this as the form always posts back to
itself .i
want to move it to new page with all the values of the form which the

user fills.How you people manage this problem?
do i have to make a custom url and redirect it to next page but i think it is not practical way of doing.
thanks in advance.
shahzad.


Nov 17 '05 #3
Hi

You can use Server.Transfer() method to acheive this
functionality.

The Transfer() method, Terminates execution of the
current page and begins execution of a new page using the
specified URL path to the page. you can specify whether
to clear the QueryString and Form collections.

Example

Server.Transfer("<<URL>>", true)
HTH
Ravikanth
-----Original Message-----
Hi,
As you all know that in classic ASP we when take the user inputs in a formthen when user click submit the form the page moves to the page specified inaction attribute of the form .
Now in Asp.Net how can we do this as the form always posts back to itself .iwant to move it to new page with all the values of the form which the userfills.How you people manage this problem?
do i have to make a custom url and redirect it to next page but i think itis not practical way of doing.
thanks in advance.
shahzad.
.

Nov 17 '05 #4

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

Similar topics

49
by: Mark Hahn | last post by:
As we are addressing the "warts" in Python to be fixed in Prothon, we have come upon the mutable default parameter problem. For those unfamiliar with the problem, it can be seen in this Prothon...
18
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
10
by: Saso Zagoranski | last post by:
hi, this is not actually a C# problem but since this is the only newsgroup I follow I decided to post my question here (please tell me where to post this next time if you think this post...
14
by: Venkat Chellam | last post by:
I have a peculiar problem. I have a simple web application which loads some data from the oracle table and display in the datagrid in the webpage and datagrid has page enabled which shows 10 rows...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
7
by: Simon Verona | last post by:
I have a problem in my application which I believe is due to open handles.. . The symptom that users report is that after they have been using the application for a while, it will randomly just...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
15
by: Chris | last post by:
>>from math import * 0.0 1.2246063538223773e-016 -2.4492127076447545e-016 1.0 -1.0 1.0 The cosine function works fine, but I'm getting weird answers for sine. Is this a bug? Am I doing...
9
by: Alan Silver | last post by:
Hello, Please look at http://www.kidsinaction.org.uk/ie/ie.html in IE6 and notice that there is a white vertical line on the right of the white bit. This is caused (AFAICS) by IE not putting the...
8
by: Chizl | last post by:
I'm building a web server and having some issues with the TCPListener.Start(BackLog). It doesn't seem to do as expected. I'm using MS Web Stress Tool to test against my web server and when I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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...

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.