Tip #19: Did you know…How to set the default view to Design view?

Source View is the default view for the IDE when you edit a Web page. You can customize the IDE so that Design View is the default. Select the menu option : Tools – > Options… From the Options dialog tree select HTML Designer –> General Select Design View radio button from the Start Pages…

2

Tip #17: Did you know… How to remote debug WAPs that are using IIS?

If you want to work on an web application project using IIS that is sitting on another server, you can use the remote debugger and the web property pages in Visual Studio 2008 SP1. First, open your web application project on the server (e.g. \\server\share), by going to File > Open Project.  If you right…

2

Tip #16: Did you know… How to change the default format settings for CSS Editor?

There is a Tools –>Options setting under Text Editor –> CSS –>Format Node which helps you change the default CSS Format settings. This dialog gives you the flexibility of setting the default CSS Formatting styles in any of     the following Styles: Compact rules: In this option the Style selector and the properties are placed in…

1

Tip #15: Did you know… How to use tracing with ASP.NET Ajax?

If you are using ASP.NET Ajax and you are having problems with a web page one quick and dirty way to debug it is to add tracing statements. You do this by using the "Sys.Debug.trace" function. For example: 1: <script language="javascript" type="text/javascript"> 1:  2: function PositionDiv() { 3: Sys.Debug.trace("Entering PositionDiv Function"); 4: //some other code…

1

Tip #14: Did you know…How to enable debugging of your Web Site?

To run a page in Debug mode you will have to choose Debug –> Start Debugging or just press F5. Debugging support is not enabled by default and if you have not run the debugger before on this web site, you will need to configure it. This is internally driven by a setting in Web.cong…

1

Tip #13: Did you know… How to get the browser agent using ASP.NET Ajax ?

When writing JavaScript for a web application, there may be times when you want to do something different depending on the browser that is requesting the page. ASP.NET Ajax has an easy way to this with the Sys.Browser object. For example, let’s say you want to do something different if the requesting browser is Opera….

1

Tip #11 Did you know… New Style builder can be invoked from various other tool windows in Visual Web Developer.

Tip#10 spoke about the New Style Builder Dialog. There are various other entry points to this dialog. You can invoke it from the following places from the IDE:  CSS Properties Tool Window: Bring up the CSS properties dialog by selecting View –>CSS Properties. Click on any rule in “Applied Rules” and bring up the context…

2