Object dropdown missing "Server Objects & Events"
In VS2008 source view, the left side object dropdown is missing "Server Objects & Events", and "Server Code".开发者_高级运维 I would like to know how to enable these to be visible.
The controls on the page do contain runat="server".
Those items only appear if you are using a single-page model for your code (i.e., html and code are both in the aspx page with no code-behind). If you are using a code-behind file, then you will not get those options while looking at the page's source view.
See the yellow box part way down this page in MSDN.
when you create a new asp page clear the check box for place code in separate file.This ensures that the IDE puts all code within .aspx file . after do that...
go to :
Tools > options > Text editor >All languages >General >>>> tick the navigation bar check box .
精彩评论