home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_06.cab / iiscpb4.asp < prev    next >
Text File  |  1997-10-15  |  3KB  |  83 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <html><head><title>Debugging an Active Server Pages Application</title>
  3.  
  4. <SCRIPT LANGUAGE="JavaScript">
  5.     TempString = navigator.appVersion
  6.     if (navigator.appName == "Microsoft Internet Explorer"){    
  7. // Check to see if browser is Microsoft
  8.         if (TempString.indexOf ("4.") >= 0){
  9. // Check to see if it is IE 4
  10.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  11.         }
  12.         else {
  13.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  14.         }
  15.     }
  16.     else if (navigator.appName == "Netscape") {                        
  17. // Check to see if browser is Netscape
  18.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  19.     }
  20.     else
  21.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  22. </script>
  23.  
  24. <META NAME="DESCRIPTION" CONTENT="IIS in Action: Debugging an Active Server Pages Application"></head>
  25.  
  26. <body bgcolor="#FFFFFF" text="#000000"><font face="Verdana, Arial, Helvetica">
  27.  
  28. <h1><a name="writingtemplates">Debugging an Active Server Pages Application</a></h1>
  29.  
  30. <table cellpadding="0" border="0" cellspacing="0" width="100%">
  31. <tr>
  32.  
  33. <td width="77%" valign="top">
  34. <DL>
  35. <DT><strong>Goal</strong></DT>
  36. <DD>To provide a Web page that members of your airline's Frequent Flyers club can use to see how many points they have accumulated, find out what trips they might be able to buy with those points, and place reservations for those trips.</DD>
  37. <DT><strong>Components</strong></DT>
  38. <DD>Windows NT Server 4.0; Internet Information Server (IIS) 4.0; Active Server Pages (ASP); ADO; Microsoft SQL Server; Internet Explorer version 3.02 with Authenticode 2 update, or later versions of Internet Explorer</DD>
  39. <DT><strong>Environment</strong></DT>
  40. <DD>All</DD>
  41. </DL>
  42. </td>
  43.  
  44.  
  45. <%
  46. If InStr(Request.ServerVariables("HTTP_USER-AGENT"), "MSIE") Then
  47.    MachPath = "../mm/iiscpb4m.asp" 
  48. Else
  49.         MachPath = "iimmnscp.htm"
  50. End If %>
  51.  
  52. <td width="4%"></td>
  53.  
  54. <td width="19%" valign="top"><br><br>
  55. <center><a href="<%= MachPath%>"><img src="iimm.gif" border=0 alt="Debugging an Active Server Pages Application"></a></center>
  56.  
  57. <center><a href="<%= MachPath%>"><p>Multimedia Demonstration</p></a></center>
  58.  
  59. </td>
  60.  
  61. </tr>
  62. </table>
  63.  
  64. <h2><A NAME="H2_37668445">Basic Process</a></h2>
  65.  
  66. <ol>
  67. <li>Enable debugging.</li>
  68. <li>Run your application.</li>
  69. <li>If the Microsoft Script Debugger finds a syntax error, fix the error and run the debugger again.</li>
  70. <li>If the debugger finds a run-time error, fix the error and run the debugger again.</li>
  71. <li>If the debugger finds a logical error, set a breakpoint, interrogate values, and resolve the logical error.</li>
  72. <li>Publish your debugged application.</li>
  73. </ol>
  74.  
  75. <h2><A NAME="H2_37668869">Result</a></h2>
  76.  
  77. <p>You increase the efficiency and quality of your application development process.</p>
  78.  
  79. <hr class="iis" size="1"><p align=center><em><a href="../../../common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
  80.  
  81. </font>
  82. </body>
  83. </html>