1

I have

<input type="button" id="btnLoginButton" runat="server" onserverclick="btnLoginTest_Click()" style="position: absolute;
                top: -1000; display: none; height: 0px; width: 0px" />

& my code behind has

protected void btnLoginTest_Click(object sender, EventArgs e)
        {

        }

Could someone please guide me as to what's happening & how to fix this? I need a postback to happen for the login controls. . Thanks in advance

4

1 回答 1

4
  1. Try to remove "()" so your code should appear like

    onserverclick="btnLoginTest_Click"

  2. If this don't work change method modifier to public.

于 2012-08-13T10:42:09.260 回答