Click here to Skip to main content
16,020,249 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
I have

<input type="radio" name="YourRadioButton" value="2345">News<br />
<input type="radio" name="YourRadioButton" value="47458">Letters<br />

<a href="clicked.aspx" >clickhere</a>

and when user clicks on any radio button , then clicks clickhere, in clicked .aspx , i dont get

value of YourRadioButton

var YourRadioButton = Request.Form["YourRadioButton"];   // this is null

regards

maulik shah
Posted
Comments
♥…ЯҠ…♥ 8-Nov-13 5:25am    
Do you want to pass "YourRadioButton" value to next page?

1 solution

Well yes - it will be. The reason being that the current page does not contain the radio button, and the page that does it no longer available.

There are a couple of things you can do:
1) Send the value of the radion button to the server each time it changes and use it to update a Session variable. You then use the session variable to update the new page when you load it.
2) Store the radio button value in a cookie via the javascript and check that when you load the new page.
 
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