943,633 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 5446
  • ASP RSS
Mar 31st, 2007
0

Retaining radio button value during paging

Expand Post »
Hello...
Is there a way to retain the value of radio button during paging in ASP?
Thanks....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
enggars is offline Offline
22 posts
since Mar 2007
Apr 2nd, 2007
0

Re: Retaining radio button value during paging

you can save value into session and use it each time
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
bakss is offline Offline
94 posts
since Jun 2006
Apr 2nd, 2007
0

Re: Retaining radio button value during paging

Or if it's part of the form submission then pick it up from the request.form. If it is outside of the submitted form, or it's not a form being submitted, then use javascript to add it to the URL
Reputation Points: 12
Solved Threads: 8
Junior Poster
davidcairns is offline Offline
114 posts
since Feb 2007
Apr 2nd, 2007
0

Re: Retaining radio button value during paging

Okay guys.
Thanks for the help, i really apreciate it.
I store the radio button value into a table.
I pass some variable through the querystring, so it doesnt matter if we move a page to another. The variable is needed to read the radio button value.
So the paging will read from the very first record on the table.

Well there is another problem though, i use javascript's time limitation. But it will stop when the page is being refreshed.
Can we disable the refresh button in our page?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
enggars is offline Offline
22 posts
since Mar 2007
Apr 10th, 2007
1

Re: Retaining radio button value during paging

What about using a cookie to hold the value. You could use either ASP or javascript
Reputation Points: 11
Solved Threads: 0
Light Poster
gil857 is offline Offline
35 posts
since Jun 2006
Apr 11th, 2007
0

Re: Retaining radio button value during paging

Click to Expand / Collapse  Quote originally posted by gil857 ...
What about using a cookie to hold the value. You could use either ASP or javascript
Okay, well im not really familiar with cookies.
Is it different to session?
Which one is more sufficient to use?

Assume if we have ten questions, so there will be 10 cookies keys to hold the values?
Im sorry the cookies thing dont ring me a bell yet, can you give me a little description of this.
Thanks....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
enggars is offline Offline
22 posts
since Mar 2007
Apr 11th, 2007
0

Re: Retaining radio button value during paging

Very similar except cookies reside on the client computer. Keeps the server from doing all the work and slowing it down. If you have 10 session variables and 20 users logged in, the server will have to keep up with 200 variables + the overhead associated with it.

The cookie puts a small 'text note' on the client computer which can hold settings, user name, etc. The cookie can be accessed from any page of your website, and since its on the client computer, it keeps the load off of your server.
Reputation Points: 11
Solved Threads: 0
Light Poster
gil857 is offline Offline
35 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Problems with .attachFile using CDONTS
Next Thread in ASP Forum Timeline: Forms not showing or something





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC