Events tab randomly appears and disappears in VS 2008

前端 未结 6 1271
渐次进展
渐次进展 2021-01-12 12:22

I know it\'s a minor annoyance.. but it\'s still an annoyance and it baffles me.. About 3 months ago I was using VS 2008 and when I went to the \"Properties\" tab there was

6条回答
  •  心在旅途
    2021-01-12 12:51

    There is a known bug in Visual Studio 2008 where it will not display the events button for ASP.Net controls within an asp:Table control. The workaround from Microsoft:

    Use regular

    and and
    tags and mark them as runat="server". This will give you the ability to modify them in code and the designer will give you acccess to the properties and events on the button.


    If this is not the case for you, try these troubleshooting steps:

    1. Try deleting the .user and .suo files (located in the same folder as your solution).

    2. If that does not help: Does this occur in other projects/solutions, or just the one? Does it occur when loading the same project/solution on a different computer with a similar setup?

      If it always happens on your computer but not others, it may be that some important file is corrupt - try reinstalling VS (and perhaps, unfortunately, even Windows).

      If it happens in the same solution on other computers, but not in different solutions, the solution/project/designer files may be corrupt. Narrow it down to one of those, and recreate the offender (it may also be a bug similar to the one above, in which case all you can do is submit a bug report and wait...)

      If neither or both... well, something super-screwy is going on!

    提交回复
    热议问题