Ahhh. I would just use a button and handle the Session check in the click event handler. Here is how I would do it with a link button:
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
Then the click event handler:
protected void LinkButton1_Click(object sender, EventArgs e)
//Check for session
Now it is pretty obvious that you are a beginner to .NET so might I suggest Imar's new book: http://www.amazon.com/Beginning-ASP-...dp/0470502215/
Imar is an amazing author and his work is spot on.
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click
on their post!
"Easy is the path to wisdom for those not blinded by themselves."