btnSubmit_Click is not a member of 'ASP.cliente_aspx'

Asked

Viewed 30 times

0

I am creating a site in Asp.net with a master page. When I try to put a datepicker gives me error.

I’m using this one Website

The same is giving the following error

'btnSubmit_Click is not a member of 'ASP.cliente_aspx'

Someone can help me?

1 answer

0

RESOLVED

Just change the code <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> for <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="btnSubmit_Click" />, or rather be the event Onclick is the event Onclientclick

  • 1

    José, it would be interesting to explain the difference between the events OnClick and OsClientClick to make the answer more illustrative, because in your question does not show the code then leaves doubt of what exactly you were doing.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.