visual studio 2019 not allowing me to select an event in the IDE

Shannon Ramirez 1 Reputation point
2021-06-16T18:55:19.173+00:00

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.
106230-vs.png

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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,574 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 111.8K Reputation points
    2021-06-16T19:40:32.733+00:00

    To work around the problem, go to Design view, select the button, go to Properties window, to Events tab, and double-click “Click”.


  2. PengGe-MSFT 3,326 Reputation points
    2021-06-17T09:41:49.437+00:00

    Hi @Shannon Ramirez

    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

    0 comments No comments