简体   繁体   中英

asp.net button click event not firing on web server

i know it's a simple problem, i searched alot but couldn't find a solution
i have this button in aspx page:

<asp:Button runat="server" ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" CssClass="btn"/>

the button works fine on my local machine. it writes to DB an email from textbox.
when i upload my webform to the server, the button refreshes the page but the event not firing.

please note: by button inside a div and it's hidden until a radio button is checked.


Thank you

i found the issue. i tried to read (not write) to see if i have a connection problem. The error i had solved in this link Login failed for user 'IIS APPPOOL\\ASP.NET v4.0' and this solved my problem.

i hope this may help any one will have the same problem.

Thanks for all your help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM