Thursday, March 29, 2012

Passing values From One asp.net Page to another

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"TARUN" <tarun.sinha@.gmail.comwrote in message
news:1190207338.512755.322880@.n39g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

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.


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

Quote:

Originally Posted by

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/li...139(vs.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Sometimes you can make use of Page.PreviousPage property.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"TARUN" <tarun.sinha@.gmail.comwrote in message
news:1190207338.512755.322880@.n39g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

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
>


On Sep 19, 6:21 pm, "Mark Rae [MVP]" <m...@.markNOSPAMrae.netwrote:

Quote:

Originally Posted by

"TARUN" <tarun.si...@.gmail.comwrote in message
>
news:1190207338.512755.322880@.n39g2000hsh.googlegr oups.com...
>

Quote:

Originally Posted by

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


>

Quote:

Originally Posted by

I Know only two way ...


>

Quote:

Originally Posted by

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


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

Quote:

Originally Posted by

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/li...139(vs.80).aspx
>
--
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
"TARUN" <tarun.sinha@.gmail.comwrote in message
news:1190208904.393014.322050@.k79g2000hse.googlegr oups.com...

Quote:

Originally Posted by

I have been instructed not to use both the way i.e session and quert
string ..


? Why...?

Quote:

Originally Posted by

Please suggest the third way for doing this


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

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

0 comments:

Post a Comment