Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Passing values From One asp.net Page to another

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TARUN - 19 Sep 2007 14:08 GMT
Hello All,

Please helping to understand this .. as i ma novice for .Net
technology..

What are the different possible way to send the value from one to
another in asp.NET using C#.NET  ??

I Know only two way ...

1. Through query string.
2. Through session varible.

Apart from above to ways is there any other way to send the value from
one page to another.
Please suggest me if possible share the code....

Thank's and regards
Tarun Sinha
Mark Rae [MVP] - 19 Sep 2007 14:21 GMT
> What are the different possible way to send the value from one to
> another in asp.NET using C#.NET  ??
[quoted text clipped - 3 lines]
> 1. Through query string.
> 2. Through session varible.

Yep, either of those will work just fine - what problems are you having...?

> Apart from above to ways is there any other way to send the value from
> one page to another.

In ASP.NET 2 you can do cross-page posting:
http://msdn2.microsoft.com/en-us/library/ms178139(vs.80).aspx

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

TARUN - 19 Sep 2007 14:35 GMT
> > What are the different possible way to send the value from one to
> > another in asp.NET using C#.NET  ??
[quoted text clipped - 14 lines]
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

But still i am looking for sending the values from one to another
I have been instructed not to use both the way i.e session and quert
string ..
Please suggest the third way for doing this
Mark Rae [MVP] - 19 Sep 2007 14:39 GMT
> I have been instructed not to use both the way i.e session and quert
> string ..

??? Why...?

> Please suggest the third way for doing this

I have already done this - did you not click the hyperlink I suggested...?

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Eliyahu Goldin - 19 Sep 2007 14:24 GMT
Sometimes you can make use of Page.PreviousPage property.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Hello All,
>
[quoted text clipped - 15 lines]
> Thank's and regards
> Tarun Sinha

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.