Avatar of smithdale87
smithdale87

asked on 

Change hyperlink navigateUrl dynamically

Is there a way to change a link's navigateUrl when I click a checkbox?

For example, I have the following link

<asp:HyperLink runat="Server" id="lnkEditGroup"  NavigateUrl="~/GroupStatusChange.aspx">Edit</asp:HyperLink >

and the following checkbox..

<asp:CheckBox id="check" Checked="false" runat="server" OnCheckedChanged="checkbox_CheckChanged"/>

Now when I click the checkbox, I want the navigate url of the link to change..., but for some reason, it's not working..

Any ideas?
Editors IDEsASP

Avatar of undefined
Last Comment
smithdale87

8/22/2022 - Mon