home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 9 / IOPROG_9.ISO / contrib / iis4 / iis4_06.cab / iiscpb4.asp < prev    next >
Encoding:
Text File  |  1997-08-26  |  3.1 KB  |  90 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.  
  25. <META NAME="ROBOTS" CONTENT="NOINDEX"></head>
  26. <body bgcolor="#FFFFFF" text="#000000"><font face="Verdana, Arial, Helvetica">
  27.  
  28.  
  29. <table border="0" cellpadding="5" width="100%">
  30. <tr>
  31. <td colspan="2"><h1><a name="writingtemplates">Debugging an Active Server Pages Application</a></h1></td>
  32. </tr>
  33.  
  34. <tr>
  35. <td valign="top">
  36.  
  37. <DL>
  38. <DT><strong>Goal</strong></DT>
  39. <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>
  40. <DT><strong>Components</strong></DT>
  41. <DD>Windows NT Server 4.0; Internet Information Server (IIS) 4.0; Active Server pages (ASP); ADO; Microsoft SQL Server; Internet Explorer 3.02</DD>
  42. <DT><strong>Environment</strong></DT>
  43. <DD>Any</DD>
  44. </DL>
  45.     
  46. </td>
  47.  
  48.  
  49.  
  50. <% MachType = Request.ServerVariables("HTTP_UA-CPU")
  51. If MachType = "Alpha" then 
  52.    MachPath = "../mm/NSRedrct.htm"
  53. ElseIf InStr(Request.ServerVariables("HTTP_USER-AGENT"), "MSIE") Then
  54.    MachPath = "../mm/iiscpb4m.asp" 
  55. Else
  56.         MachPath = "iimmnscp.htm"
  57. End If %>
  58.  
  59. <td width="180" rowspan="3" nowrap background="gradient.gif" valign="top">
  60. <center>
  61. <a href="<%= MachPath%>"><img src="iimm.gif" border="0" alt="Debugging an Active Server Pages Application"></a><p>Click for a NetShow demonstration of some of the tasks mentioned in this scenario.
  62. </center><br>
  63. </td>
  64. </tr>
  65.  
  66. </table>
  67.  
  68. <h2><A NAME="H2_37668445">Basic Process</a></h2>
  69.  
  70. <ol>
  71. <li>Enable debugging.</li>
  72. <li>Run your application.</li>
  73. <li>If the debugger finds a syntax error, fix the error and run the debugger again.</li>
  74. <li>If the degugger finds a Run-time error, fix the error and run the debugger again.</li>
  75. <li>If the debugger finds a logical error, set a break point, interrogate values, and resolve the logical error.</li>
  76. <li>Publish your debugged application.</li>
  77. </ol>
  78.  
  79.  
  80.  
  81. <h2><A NAME="H2_37668869">Result</a></h2>
  82.  
  83. <p>You increase the efficiency and quality of your application development process.</p>
  84.  
  85.  
  86. <hr class="iis" size="1"><p align=center><em><a href="../../../common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
  87.  
  88. </font>
  89. </body>
  90. </html>