Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,
I am placing radio button in a gridview and keeping it invisible.
I want the value of radiobutton on clicking of edit button and send to it another page.
Problem when i keep the radio button visiility to true it gives me value whether it is checked or unchecked but when i set the property to invisible it only returns false(unchecked) value.

Kindly help.
Posted

Hi,
Try this instead of set off the visibility:
HTML
style="display:none"


I hope it helps
Cheers
 
Share this answer
 
If you are setting the radio button invisible means there is no resource for that radio button. And you are trying to fetch the value which is not there.. Definitely it will return an empty string.. If you are planning to not show the radio button to the user use one of these:

C#
RadioButton1.Attributes.Add("display", "none");


or

in source :
HTML
style="display:none"


I hope this will help you..
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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