Saroj13
asked on
convert checkbox code to link in asp.net and c#
hi,
I want to convert checkbox into link. Clicking on checkbox will expand/collapse table. How the below can be converted if the checkbox is a link.
<asp:CheckBox id=chkExpandView runat="server" Font-Names="Arial" Font-Size="X-Small" AutoPostBack=true OnCheckedChanged="chkExpan dView_Chec kedChanged " />
<font size="2" face="Arial"> <b>Expand All</b></font>
C#
protected string DisplayScriptExpandCollaps e()
{
if (this.chkExpandView.))
return "display:block;";
else
return "display:none;";
}
I want to convert checkbox into link. Clicking on checkbox will expand/collapse table. How the below can be converted if the checkbox is a link.
<asp:CheckBox id=chkExpandView runat="server" Font-Names="Arial" Font-Size="X-Small" AutoPostBack=true OnCheckedChanged="chkExpan
<font size="2" face="Arial"> <b>Expand All</b></font>
C#
protected string DisplayScriptExpandCollaps
{
if (this.chkExpandView.))
return "display:block;";
else
return "display:none;";
}
Do you want the CheckBox to use an <anchor> style, or change the CheckBox to a HyperLink control?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.