Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here, i want to save the value of check box in database,then if the check box was checked then i want to get a link to go to another page in details view of particular user.And if the check box was unchecked the link will not appear in the the details view of a particular row...
(c#)
Posted
Updated 14-Jul-12 0:42am
v2
Comments
Sebastian T Xavier 14-Jul-12 5:44am    
so what is the question?
symonsarwar 14-Jul-12 5:54am    
i can store the checkbox value but how i can create the link in the details view with the checkbox?

i can store the checkbox value but how i can create the link in the details view with the checkbox?
You don't have to create links with checkbox. Place links for all but just hide few based on the related checkbox value. Thus, Visible property of the link control will be driven based on checkbox.

You can do it directly in designer using Eval method OR use RowDataBound to get checkbox value and set visiblity of link control. Try out.
 
Share this answer
 
Comments
symonsarwar 5-Aug-12 13:08pm    
can i find any example
using sql data adapter to get value from database and with the value make the checkbox visible
 
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