To work around the problem, go to Design view, select the button, go to Properties window, to Events tab, and double-click “Click”.
visual studio 2019 not allowing me to select an event in the IDE
I have a fully patched VS 2019 Community Edition. I have new aspx page that has the following on it.
<asp:Button ID="btnImport" runat="server" Text="Import" />
when i look at the code behind what i've always done in the past is select the btnImport from the center top of the screen. Once btnImport is selected i can then click on the drop down next to it and select what event i'd like to be generated.. such as a click event.
Right now when i select btnImport, it doesn't stick, it goes back to the the page name. Because of this i can get the click event to auto generate.
Is there something i can do to get it to act like it used to. I'm thinking it's a VS update or something that has changed as it's happening on more than one machine now. thanks
I also tried to created a new project.. an empty asp.net site. I created the button like above and i'm having the same issue.. it shows up to select but once i select it, it goes back to the top and doesn't allow me to click on any events
2 answers
Sort by: Most helpful
-
-
PengGe-MSFT 3,326 Reputation points
2021-06-17T09:41:49.437+00:00 Welcome to Microsoft Q&A!
I created a ASP.NET WEB project and tested it, but it worked well. I found a post in the Developer Community that is related to your question. You can refer to this post for help.
If your issue still persists, feel free to let me know.Sincerely,
Peng
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread