Retaining radio button value during paging

Reply

Join Date: Mar 2007
Posts: 22
Reputation: enggars is an unknown quantity at this point 
Solved Threads: 0
enggars enggars is offline Offline
Newbie Poster

Retaining radio button value during paging

 
0
  #1
Mar 31st, 2007
Hello...
Is there a way to retain the value of radio button during paging in ASP?
Thanks....
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 94
Reputation: bakss is an unknown quantity at this point 
Solved Threads: 0
bakss bakss is offline Offline
Junior Poster in Training

Re: Retaining radio button value during paging

 
0
  #2
Apr 2nd, 2007
you can save value into session and use it each time
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 114
Reputation: davidcairns is an unknown quantity at this point 
Solved Threads: 8
davidcairns davidcairns is offline Offline
Junior Poster

Re: Retaining radio button value during paging

 
0
  #3
Apr 2nd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 22
Reputation: enggars is an unknown quantity at this point 
Solved Threads: 0
enggars enggars is offline Offline
Newbie Poster

Re: Retaining radio button value during paging

 
0
  #4
Apr 2nd, 2007
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?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 35
Reputation: gil857 is an unknown quantity at this point 
Solved Threads: 0
gil857's Avatar
gil857 gil857 is offline Offline
Light Poster

Re: Retaining radio button value during paging

 
1
  #5
Apr 10th, 2007
What about using a cookie to hold the value. You could use either ASP or javascript
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 22
Reputation: enggars is an unknown quantity at this point 
Solved Threads: 0
enggars enggars is offline Offline
Newbie Poster

Re: Retaining radio button value during paging

 
0
  #6
Apr 11th, 2007
Originally Posted by gil857 View Post
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....
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 35
Reputation: gil857 is an unknown quantity at this point 
Solved Threads: 0
gil857's Avatar
gil857 gil857 is offline Offline
Light Poster

Re: Retaining radio button value during paging

 
0
  #7
Apr 11th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4424 | Replies: 6
Thread Tools Search this Thread



Tag cloud for ASP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC