locked
Where are the events? RRS feed

  • Question

  • User1024883284 posted

    Beginner coming from WPF/C# for Windows.

    In WPF, you add a control to a view, such as a button, whether in Design view, or markup, Visual Studio shows you a complete list of properties, and a complete list of the events built into the control.  It becomes trivial to manage the dozens of unique and syntactically difficult event names for each control.

    In ASP.NET, when you select a control, you get no list of events, and the list of properties in the props window is strange and less sophisticated when compared with a WPF control.

    Where is the list of events for each control in the visual studio editor? and why do the control properties window not resemble or match those of the rest of Windows design tools?

    I asked this question on IRC, and the answer was "you look up every control on MSDN as you go"... umm. really?

    Wednesday, July 23, 2014 10:24 AM

Answers

  • User-1360095595 posted

    In design view, select the control you want, then look in the properties window. You'll see a lightening bolt icon. Click on it and you'll see the events available for that control. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 23, 2014 10:29 AM

All replies

  • User-1360095595 posted

    In design view, select the control you want, then look in the properties window. You'll see a lightening bolt icon. Click on it and you'll see the events available for that control. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 23, 2014 10:29 AM
  • User1428246847 posted

    In the markup view, typing a <space> will give you a list. E.g when you place the cursor between the " and the / near the end in the below control and press <space>

    <asp:Button ID="btnLastFiles" runat="server" Text=">>|" OnClick="btnLastFiles_Click"/>
    

    Wednesday, July 23, 2014 10:52 AM