Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET4.0
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 13-Jul-12 23:43pm
Edited 14-Jul-12 0:42am
v2
Comments
Sebastian T Xavier at 14-Jul-12 5:44am
   
so what is the question?
symonsarwar at 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?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
symonsarwar at 5-Aug-12 13:08pm
   
can i find any example
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

using sql data adapter to get value from database and with the value make the checkbox visible
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 11 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100