Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > newbie navigation/form re-draw issue...

Reply
Thread Tools

newbie navigation/form re-draw issue...

 
 
roger beniot
Guest
Posts: n/a
 
      04-06-2004
I'm trying to figure out how to do something in ASP.NET that used to
be accomplished by doing a post from one page to another page.

If a webform as fields for user information (address, name, phone,
etc) and a submit button... What is the best way in asp.net to
re-display the information and ask the user to verify the info is
correct.

Will I do a post back to the same webform, remove the previous web
server controls and redraw the page w/ the new information?

Would it be best to transfer to a new page (via Response.Redirect
(url) or Server.Transfer (url)) and get the information from the first
webform?


thanks,
roger
 
Reply With Quote
 
 
 
 
Chris Moore
Guest
Posts: n/a
 
      04-10-2004
It's probably easiest to do something like posting the data to a new form
which will display it to the user and ask for confirmation. You could also
write your original page to check for whether this is a postback or not,
and then generate the form's target and the data fields on the fly.
Assuming your page is "page1.aspx" it might be something like:

<some header information>
...
if (isPostBack = true) then
Response.Write("Please confirm the data and hit sumbit again (or some
other message)");
endif

if (isPostBack = true) then
response.write("<form method=post target=page2.aspx");
else
response.write("<form method=post target=page1.aspx");
endif

Then, when writing out your textboxes and other input forms, you can check
to see if ispostback = true and it it is, you can populate the value
appropriately from the request object.

</form>

Just a thought,
Chris


--------------------
>From: http://www.velocityreviews.com/forums/(E-Mail Removed) (roger beniot)
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>Subject: newbie navigation/form re-draw issue...
>Date: 6 Apr 2004 12:12:53 -0700
>Organization: http://groups.google.com
>Lines: 18
>Message-ID: <(E-Mail Removed) >
>NNTP-Posting-Host: 12.129.11.151
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1081278773 7573 127.0.0.1 (6 Apr 2004 19:12:53

GMT)
>X-Complaints-To: (E-Mail Removed)
>NNTP-Posting-Date: Tue, 6 Apr 2004 19:12:53 +0000 (UTC)
>Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!news.glorb.com!postnews1.google.com!not-for-mail
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:224021
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>I'm trying to figure out how to do something in ASP.NET that used to
>be accomplished by doing a post from one page to another page.
>
>If a webform as fields for user information (address, name, phone,
>etc) and a submit button... What is the best way in asp.net to
>re-display the information and ask the user to verify the info is
>correct.
>
>Will I do a post back to the same webform, remove the previous web
>server controls and redraw the page w/ the new information?
>
>Would it be best to transfer to a new page (via Response.Redirect
>(url) or Server.Transfer (url)) and get the information from the first
>webform?
>
>
>thanks,
>roger
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie with newbie questions JohnE ASP .Net 3 08-17-2009 10:10 PM
VONAGE Newbie w/newbie question New_kid@nowhere.new VOIP 0 08-11-2007 01:40 PM
another newbie question from another newbie.... Lee UK VOIP 4 05-17-2005 04:10 PM
newbie: cisco vlan newbie question No Spam Cisco 3 06-07-2004 10:02 AM
Newbie! I'm a newbie! What's wrong with this program? Id0x Python 4 07-20-2003 11:40 PM



Advertisments