question

ShannonRamirez-1322 avatar image
0 Votes"
ShannonRamirez-1322 asked PengGe-MSFT commented

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.
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

vs-general
vs.png (44.7 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ShannonRamirez-1322
May I know whether your issue has been solved or not? If not, please share it in here. We can work together to figure it out.

0 Votes 0 ·
Viorel-1 avatar image
0 Votes"
Viorel-1 answered Viorel-1 commented

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


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the idea. The in properties, the btnImport<BUTTON> does not show a click event to double click on. I thought it used to.. but don't see one now.

0 Votes 0 ·
Viorel-1 avatar image Viorel-1 ShannonRamirez-1322 ·

Did you click the Events button (⚡) in Properties window?

0 Votes 0 ·
PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered

Hi @ShannonRamirez-1322

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.