Last post Sep 09, 2020 03:28 AM by nathan724
Sep 09, 2020 02:50 AM|nathan724|LINK
In the old visual studio (probably before 2010). I was able to add a control event in the code-behind page using the dropdown list at the top of the page. The dropdown list gives me all events of a control and I just selected the one and the empty event
handler appeared in the ocde page. Now in the Visual Studio 2019, in the code behind page (c#), I see three dropdown lists, the first one just has the namespace (my solution), the second one just show the current page partial class name, and the third one
contains the objects in the page, as well as event procedures I have created. What did I miss? How do I add an event procedure without having to type the empty procedure myself?
Sep 09, 2020 03:28 AM|nathan724|LINK
OK. I figured it out. I have to look into the Design tab of the page (not the Source tab), then the Lightning button appears in the Properties page of the control I selected in the Design tab. Clicking the lightning button gives me all events.