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

0

I'm creating a site in asp.net with a master page. When I try to put a datepicker it gives me error.

I'm resorting to this Site

Being the same as giving the following error

  

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

Can someone help me?

    
asked by anonymous 02.05.2018 / 11:47

1 answer

0

RESOLVED

Just change the code <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> to <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="btnSubmit_Click" /> , that is instead of being the OnClick event is the OnClientClick     

02.05.2018 / 12:05