E
enak
I have put a HyperLink control on a page. When I click on
the link I am expecting the next page to display. However,
when I run it through the debugger I can see that the page
where the link resides is being processed again and the
link object is not set.
I have put "If not IsPostBack then" but IsPostBack is
False so the code gets executed again. Why is this
happening and how do I fix it?
Here is my code:
-- VB --
If Not IsPostBack Then
Me.lnkEdit.Target = "doc"
Me.lnkEdit.NavigateUrl = "CaseViewEdit.aspx?
CaseID=" & sCaseID
End If
-- ASP --
<asp:HyperLink id="lnkEdit" style="Z-INDEX: 161; LEFT:
321px; POSITION: absolute; TOP: 496px" runat="server" Font-
Size="X-Small" Font-Bold="True">Edit Current
Record</asp:HyperLink>
Any help would be appreciated.
Thanks
enak
the link I am expecting the next page to display. However,
when I run it through the debugger I can see that the page
where the link resides is being processed again and the
link object is not set.
I have put "If not IsPostBack then" but IsPostBack is
False so the code gets executed again. Why is this
happening and how do I fix it?
Here is my code:
-- VB --
If Not IsPostBack Then
Me.lnkEdit.Target = "doc"
Me.lnkEdit.NavigateUrl = "CaseViewEdit.aspx?
CaseID=" & sCaseID
End If
-- ASP --
<asp:HyperLink id="lnkEdit" style="Z-INDEX: 161; LEFT:
321px; POSITION: absolute; TOP: 496px" runat="server" Font-
Size="X-Small" Font-Bold="True">Edit Current
Record</asp:HyperLink>
Any help would be appreciated.
Thanks
enak