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