ASP.NET
  Home arrow ASP.NET arrow Page 4 - How to Test and Debug an ASP.NET 2.0 Appli...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

How to Test and Debug an ASP.NET 2.0 Application
By: Murach Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2006-05-11

    Table of Contents:
  • How to Test and Debug an ASP.NET 2.0 Application
  • How to create a remote IIS web site
  • How to test an ASP.NET application
  • How to test an application with a browser other than the default
  • How to test a file-system web site with IIS

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    How to Test and Debug an ASP.NET 2.0 Application - How to test an application with a browser other than the default


    (Page 4 of 5 )


     
    Once you’ve thoroughly tested your application with Internet Explorer, you’ll want to test it with other browsers to make sure it works as expected. Figure 4-5 describes two ways to do that. First, you can right-click the starting page for the application in the Solution Explorer and choose the Browse With command. This displays a Browse With dialog box like the one shown in this figure. From this dialog box, you can choose the browser you want to use and then click the Browse button.

    Notice that the list of browsers in the Browse With dialog box includes the Internal Web Browser. If you choose this browser, the page is displayed in a Browse window within Visual Studio. You can test the application from this browser just as you would from any other browser. Then, when you’re done with the browse operation, just close the Browse window.

    You can also test an application with another browser by making that browser the default browser. To do that, right-click any page in the Solution Explorer and choose Browse With. Next, select the browser you want to designate as your default browser and click the Set As Default button. Then, click the Cancel button to close the Browse With dialog box. You can then use any of the techniques listed in figure 4-4 to start the application in the browser you selected. Note that setting a browser as the default is the only way to use the debugger with the browser. That’s because the Browse With command runs an application without debugging.

    Sometimes, the browser you want to test an application with doesn’t appear in the Browse With dialog box even though it’s installed on your computer. In most cases, that’s because you installed the browser after installing Visual Studio. Then, you can add the browser by clicking the Add button in the Browse With dialog box to display the Add Program dialog box. This dialog box lets you locate the executable file for the browser you want to add and enter a “friendly” name that’s used for the browser in the Browse With dialog box.

    The Browse With dialog box


    Figure 4-5.  How to test an application with a browser other than the default

    Two ways to test an application with a browser other than the default

    • Right-click the starting page for the application in the Solution Explorer and choose Browse With from the shortcut menu. In the Browse With dialog box that’s displayed, select the browser you want to use and click the Browse button.
    • Select the browser you want to use in the Browse With dialog box and then click the Set as Default button to make that browser the default. The next time you run the application, it will be displayed in the browser you selected.

    Description

    • It’s important to test an ASP.NET application in any browsers that might be used to run the application.
    • If a browser isn’t included in the list of available browsers, you can add it to the list by clicking the Add button in the Browse With dialog box and then using the Add Program dialog box that’s displayed to add the desired browser.
    • If you select the Internal Web Browser option, the page is displayed in a Browse window within Visual Studio. To end the browse operation from this window, just close the window.
    • You’ll need to change the default browser if you want to use the debugger with another browser, since the Browse With command starts the application without debugging.

    More ASP.NET Articles
    More By Murach Publishing


       · This article is an excerpt from the book "Murach's ASP.NET 2.0 Web Programming with...
     

    Buy this book now. This article is excerpted from chapter four of the book Murach's ASP.NET 2.0 Web Programming with VB 2005, written by Joel Murach and Anne Boehm (Murach, 2006; ISBN: 1-890774-32-4). Buy this book now.

    ASP.NET ARTICLES

    - Developing a Mini ASP.NET AJAX Server Centri...
    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT