Click here to Skip to main content
15,994,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi how can i select one radio button from radio button list
and use this at another page?
i should use session?
or class?
or query string?
---------
i have 2 page,at the first page i have radio button list,with color,
when i choose one radio button i want to go to page 2 and change the background color,that i selected in page 1 from radio button list...
Posted
Updated 22-Dec-09 8:30am
v2

wrote:
i should use session?
or class?
or query string?
or i can use easy solution?


All those solutions are easy. They will all work ( well, I take it back, what do you mean by 'class' ? ). They really have nothing to do with the radiobuttonlist, but with state management. I'd use the query string where ever possible, viewstate if I need to, and session if I have no choice. Based on what you've asked, you know the answers, and provide no details about your situation that help us tell you which one to use, except that it seems that you don't think that using the query string or session are easy. If you don't think that, you should buy a book and read it, because once you understand them, they are trivial to use.
 
Share this answer
 
wrote:
when i choose one radio button i want to go to page 2 and change the background color,that i selected in page 1 from radio button list...


OK, so put it on the URL. Then your second page can set it's color from anywhere, and the color you use, is bookmarkable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900