Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dropdownlist events does not show in properties window asp.net Visual Studio 2010

I recently found that dropdownlist events are not shown in properties window. I was disappointed. I already hate asp.net designer in visual studio. its slow and full with ugly things like this. please help me. I need to generate events automatically not to write it by hand.

enter image description here

like image 799
Zviadi Avatar asked Apr 16 '11 12:04

Zviadi


2 Answers

It seems that the Properties Dropdown changes after viewing 'Split' or 'Design' view of the .aspx file at least once. In my case, I always left it in 'Source' mode and never saw the asp.net properties (and events) in Properties Dropdown.

The Design/Split/Soruce buttons are in the lower left of the text editor window pane.enter image description here

like image 55
Jeff Avatar answered Oct 07 '22 11:10

Jeff


I haven't found a good answer for this anywhere on the web so here it is:

After playing around I noticed that the Events options in Properties disappears after you have started editing the file. If you save or Ctrl+s then Visual Studio will reevaluate the page and realize its an actual ASP tag and give you the full properties with the events choices again.

You do not have to use Designer.

like image 20
Chris Werner Avatar answered Oct 07 '22 11:10

Chris Werner