ASP.NET LinkButton OnClick Event Is Not Working On Home Page

后端 未结 2 882
旧时难觅i
旧时难觅i 2021-01-23 05:33

I have a user control that handles logging a user in to my site. This user control is placed in the upper right corner of all pages as a Quick Login Box. The problem I\'m having

2条回答
  •  失恋的感觉
    2021-01-23 06:02

    Could you temporarily perform some logging from those event handlers?

    You could write to a .txt file on the web server. Or to the event log.

    As the first line in the click event, write to the log. Then, perform the desired action (login, reset) in a try-catch block. Both the try and the catch write to the log again. If there's some weird exception happening, you can capture the details in your catch logging.

    If you want to leave this temporary code in place, but don't want to perform logging unnecessarily, you could add a toggle in in your web.config file, so that you can turn the logging on and off.

提交回复
热议问题