|
 |
aspx_beginners thread: Making variables persistent from one postback to the next
Message #1 by "Neil Newton" <capnbooda@a...> on Tue, 28 May 2002 15:49:28
|
|
Hi,
I've created a hyperlink to a page with one querystring pair attached to
the link (data.aspx?ScreenNum=1). My page comes up and then I enter data
and hit the "save button".
My problem is that after I hit the save button and the first postback
occurs, I'd still like to have the value of the querystring I appended to
the hyperlink. Is there a way for me to save the value of this querystring
in the first page load (in a variable) before I hit the save button. I had
considered using a session variable to save this, but it seems like the
wrong way to do this.
Bascially, I guess the question is: is it possible to assign a value to
a variable in the first page load of a screen and have it persist from one
postback to the next (without using a session variable).
Thanks,
Neil
Any suggestions
Message #2 by "Sri Vidya" <svsvidya@i...> on Wed, 29 May 2002 11:13:15 +0530
|
|
Hi,
Have you tried using PERSISTENT COOKIES?
Cheers,
Vidya.
On Tue, 28 May 2002 15:49:28
"Neil Newton" <capnbooda@a...> wrote:
>Hi,
>
> I've created a hyperlink to a page with one querystring pair
>attached to
>the link (data.aspx?ScreenNum=1). My page comes up and then I enter
>data
>and hit the "save button".
>
> My problem is that after I hit the save button and the first
>postback
>occurs, I'd still like to have the value of the querystring I
>appended to
>the hyperlink. Is there a way for me to save the value of this
>querystring
>in the first page load (in a variable) before I hit the save button.
>I had
>considered using a session variable to save this, but it seems like
>the
>wrong way to do this.
>
> Bascially, I guess the question is: is it possible to assign a
>value to
>a variable in the first page load of a screen and have it persist
>from one
>postback to the next (without using a session variable).
>
>Thanks,
>Neil
>
> Any suggestions
---------------------------------------------
http://mail.indiainfo.com
India's first ISO certified portal
Check world time at http://time.indiainfo.com
|
|
 |