About
Pricing
Community
Teams
Start Free Trial
Log in
Saroj13
asked on
3/9/2012
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;";
}
ASP.NET
C#
2
1
Last Comment
Tom Beck
8/22/2022 - Mon
Bob Learned
3/10/2012
Do you want the CheckBox to use an <anchor> style, or change the CheckBox to a HyperLink control?
ASKER CERTIFIED SOLUTION
Tom Beck
3/10/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy