Tip #109 Did you know … How to speed up build time by *only* building the currently selected project in a multi-project solution?

When working with a solution that contains numerous projects, I find myself often wanting to only build and run the currently selected project. Other projects in the solution might have build errors that I don’t want to resolve at the current time. By default though, trying to do a CTRL+F5 on the currently selected project…

0

Tip#101: Did you know… How to scope Theme

Themes are a way to define properties of pages and controls, and can be used to provide consistent look across pages. There are several different levels of applying a theme to an individual control, a page, or an application. Control Level Define a named skin (an entry in a .skin file having the SkinID property…

4

Tip#100: Did you know… How to view ASP.NET trace information?

You can enable ASP.NET tracing either at an Application level or at a page level; see Tip# 77: Did you know… How to enable Page Level Tracing for your ASP.NET pages? for more information. With the tracing enabled, you can view the trace output in a trace viewer by navigation to trace.axd from the root…

9

Tip #80: Did you know… How to show JScript validation errors as warnings?

With Visual Studio 2008 RTM, JScript validation setting is an option on the HTML validation page on the Options dialog. Since Visual Studio 2008 SP1 and later, we added a new option page JScript on the Options dialog, see the blog “Introducing JScript Formatting in VS 2008 SP1” for more detail. With this change, now…

3

Tip #79: Did you know… How to quickly comment and uncomment in your web pages?

Select the lines you want to be commented in your ASPX, HTML, web config file etc  and click on the Comment/ Uncomment icon in Toolbar. The comment icon looks like this:   The icon for uncomment looks like: Alternatively you can use  Keyboard shortcut Ctrl+K Ctrl+C to comment and use Ctrl+K Ctrl+U to uncomment. Comments…

3

Tip# 78: Did you know… How to navigate using Document Outline?

Document Outline window can be launched from the menu View -> Document Outline, or via short cut key Ctrl-Alt-T. The Document Outline window displays a nested, hierarchical tree of the elements and scripts on the page. It gives you a good overview of the page’s content and its layout. Double-clicking any element listed in the…

3

Tip# 77: Did you know… How to enable Page Level Tracing for your ASP.NET pages?

Enabling tracing at page level gives you a bunch of information that can be useful while debugging your application.Tracing helps understand which control uses more view state,  start/end of PreInit, start/end of Init, start/end of Render, etc. This information appears at the bottom of the page. By default page level tracing is disabled. Tracing can…

7

Tip #76: Did you know… How to hide a non-visual control in your designer?

Some times as you are building your web page, you may want to hide all the non-visual controls like Timer control so that the page looks close to how it would be rendered on your browser. Our Designer can toggle between displaying and not displaying Non-visual controls using  Ctrl+Shift+N Display ASP.NET Non-visual controls turned on:…

4

Tip #75: Did you know…How to maintain scrollposition after post back?

When web pages are posted back to the server, by default user is returned to the top of the page. On a large web page, you might have a requirement to scroll down the user automatically to the last position on the page. MaintainScrollPositionOnPostBack page property can be used to achieve this  in one of…

12