LinkButton Click event ignored

Posted by Craig on Stack Overflow See other posts from Stack Overflow or by Craig
Published on 2010-04-28T14:45:41Z Indexed on 2010/04/28 14:53 UTC
Read the original article Hit count: 386

Filed under:
|
|
|

I have the following Hyperlink as a button:-

<asp:LinkButton ID="loginButton" runat="server" CssClass="loginButton" Text="LOGIN" OnClientClick="return validateLogin(memNoID,pwID)" AddressOf="loginButton.Click"></asp:LinkButton>

It causes a postback but only executes the onload and prerender sections of code. It totally ignores the following function signature:-

Protected Sub loginButton_Click(ByVal sender As Object, ByVal e As EventArgs)

Some code

End Sub

Any pointers appreciated.

© Stack Overflow or respective owner

Related posts about linkbutton

Related posts about ASP.NET