adddeveloper
Programmer
yes, I know I posted this concerning a recent post, but what was with a control I found on the web.
I'm now trying it on my own.
Here's what I have in my HTML:
<a name="#cb1"></a>
<asp:CheckBox id="cb1" runat="server" Text="Don't show me again." AutoPostBack="True">
</asp:CheckBox>
*****************************************************************
For my code behind, I've got the following in the page_load event:
If Page.IsPostBack Then
Response.Write("<script>location.href="" temp_href=""#""<%=Request.Form[""__EVENTTARGET""]%>"";</script>")
End If
...tried this too, and no luck for the page_load event:
***********************************************************************
If Page.IsPostBack Then
Dim strScript As String
strScript = "<script>"
strScript = strScript & "location.href=""#<%=Request.Form[""__EVENTTARGET""]%>"";"
strScript = strScript & "</script>"
Page.RegisterStartupScript("ClientScript", strScript)
End If
Any suggestions are welcome.
Thanks!
I'm now trying it on my own.
Here's what I have in my HTML:
<a name="#cb1"></a>
<asp:CheckBox id="cb1" runat="server" Text="Don't show me again." AutoPostBack="True">
</asp:CheckBox>
*****************************************************************
For my code behind, I've got the following in the page_load event:
If Page.IsPostBack Then
Response.Write("<script>location.href="" temp_href=""#""<%=Request.Form[""__EVENTTARGET""]%>"";</script>")
End If
...tried this too, and no luck for the page_load event:
***********************************************************************
If Page.IsPostBack Then
Dim strScript As String
strScript = "<script>"
strScript = strScript & "location.href=""#<%=Request.Form[""__EVENTTARGET""]%>"";"
strScript = strScript & "</script>"
Page.RegisterStartupScript("ClientScript", strScript)
End If
Any suggestions are welcome.
Thanks!