Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Passing Info from one page to another

Reply
Thread Tools

Passing Info from one page to another

 
 
=?Utf-8?B?SXJmYW4gQWtyYW0=?=
Guest
Posts: n/a
 
      02-14-2005
Hi People,

Just wondering how we can pass info from one page to another when we enter
Response.Redirect("CertainPage.aspx",false), so that we can observe this
information and display corresponsing info on the screen of the new page.

Will wait for useful responses.

Thanks,

Irfan
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      02-14-2005
There are a number of ways to pass values from one page to
another, such as using the querystring, cookies, session,
context, saving to a temporary table in the database between each page, etc.
You'll have to decide which technique is best for your application.

Here are several good articles on the subject to help you decide.
http://www.dotnetbips.com/displayarticle.aspx?id=79

http://msdn.microsoft.com/msdnmag/is...e/default.aspx

http://www.aspalliance.com/kenc/passval.aspx

Here's a nice, simple way to pass values from one page to another:
(VB.NET code)

'Add data to the context object before transferring
Context.Items("myParameter") = x
Server.Transfer("WebForm2.aspx")

Then, in WebForm2.aspx:

'Grab data from the context property
Dim x as Integer = CType(Context.Items("myParameter"),Integer)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Irfan Akram" <> wrote in message
news:919AEE2D-5479-4D5E-B588-...
> Hi People,
>
> Just wondering how we can pass info from one page to another when we enter
> Response.Redirect("CertainPage.aspx",false), so that we can observe this
> information and display corresponsing info on the screen of the new page.
>
> Will wait for useful responses.
>
> Thanks,
>
> Irfan



 
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
Passing info from one page to another - tricky problem Edwin Javascript 1 08-07-2006 08:04 PM
sending info from one jsp page to another... graniteraju@gmail.com Java 2 02-24-2006 03:47 AM
passing data from one page to another Brian Smith ASP .Net 3 07-15-2003 08:02 PM
Passing value from one script on one page to another script on another page. Robert Cohen ASP General 3 07-15-2003 01:46 PM
Passing database info to page allow user input then pass into another database Renie83 ASP General 2 07-14-2003 05:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57