?
Solved

Run ASP on my local machine

Posted on 2003-03-26
10
Medium Priority
?
1,906 Views
Last Modified: 2007-12-19
I have IIS installed on my workstation and am trying to run an ASP page.

I open IE 6 and type the following URL:

http://localhost/login.asp

When I press ENTER it is displaying the text of the actual ASP page instead of returning just the HTML.

What am I doing wrong?
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 8212035
Here is the ASP source:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0057)http://www.asp101.com/samples/download.asp?file=index.asp -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY><PRE><%
'*******************************************************
'*     ASP 101 Sample Code - http://www.asp101.com/    *
'*                                                     *
'*   This code is made available as a service to our   *
'*      visitors and is provided strictly for the      *
'*               purpose of illustration.              *
'*                                                     *
'*      http://www.asp101.com/samples/license.asp      *
'*                                                     *
'* Please direct all inquiries to webmaster@asp101.com *
'*******************************************************
%>

&lt;IMG SRC="../images/h_samples.gif" border=0 width=186 height=50 alt="Samples"&gt;
&lt;% HR %&gt;

&lt;%
Sub WriteTableRow(sFileName, sSampleName, sSampleDesc, iRating, bNew, bASPX)
Dim I 'As Integer
      Response.Write "&lt;tr&gt;" &amp; vbCrLf
      Response.Write vbTab &amp; "&lt;td&gt;&lt;a href=""" &amp; sFileName &amp; """&gt;" &amp; sSampleName &amp; "&lt;/a&gt;&lt;/td&gt;" &amp; vbCrLf
      Response.Write vbTab &amp; "&lt;td&gt;" &amp; sSampleDesc
      If bNew Then Response.Write "&amp;nbsp;&amp;nbsp;&lt;img src=""../images/new.gif""&gt;"
      Response.Write "&lt;/td&gt;" &amp; vbCrLf
      
      Response.Write vbTab &amp; "&lt;td align=""center""&gt;"
      If bASPX Then
            Response.Write "&lt;a href=""" &amp; Replace(sFileName, ".asp", "_aspx.asp") &amp; """&gt;&lt;img src=""./images/aspx_indicator.gif"" width=""58"" height=""26"" border=""0""&gt;&lt;/a&gt;"
      Else
            Response.Write "&amp;nbsp;"
      End If
      Response.Write "&lt;/td&gt;" &amp; vbCrLf
      
      Response.Write vbTab &amp; "&lt;td&gt;"
      For I = 1 to iRating
            Response.Write "&lt;img src=""./images/vbscript.gif"" width=""22"" height=""26""&gt;"
      Next 'I
      Response.Write "&lt;/td&gt;" &amp; vbCrLf
      Response.Write "&lt;/tr&gt;" &amp; vbCrLf
End Sub
%&gt;

&lt;TABLE BORDER=0&gt;
&lt;TR&gt;
      &lt;TD ALIGN="center"&gt;
      &lt;A HREF="./viewasp.asp?file=index.asp"&gt;
      &lt;IMG SRC="./images/viewasp.gif" WIDTH=50 HEIGHT=32 BORDER=0 ALT="ASP"&gt;&lt;/A&gt;
      &lt;/TD&gt;
      &lt;TD&gt;
      Wherever you see this image you can click on it to see
      the actual ASP code that generated the corresponding page.
      So it stands out, ASP code is displayed as
      &lt;FONT COLOR=#0000FF&gt;blue text&lt;/FONT&gt; and ASP comments are
      &lt;FONT COLOR=#009900&gt;green text&lt;/FONT&gt;.
      &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
      &lt;TD ALIGN="center"&gt;
      &lt;A HREF="./viewhtml.asp?file=index.asp"&gt;
      &lt;IMG SRC="./images/viewhtml.gif" WIDTH=50 HEIGHT=32 BORDER=0 ALT="HTML"&gt;&lt;/A&gt;
      &lt;/TD&gt;
      &lt;TD&gt;
      Likewise where you see this image you can click on it to
      see a previously run sample of HTML that was generated by
      the script.
      &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
      &lt;TD ALIGN="center"&gt;
      &lt;A HREF="./download.asp?file=index.asp"&gt;
      &lt;IMG SRC="./images/download.gif" WIDTH=86 HEIGHT=32 BORDER=0 ALT="HTML"&gt;&lt;/A&gt;
      &lt;/TD&gt;
      &lt;TD&gt;
      Due to popular demand, when you click on this image, you'll
      get      a plain      text version of the script.  You can either save
      the whole file or cut and paste it directly into your own script!
      &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
      &lt;td align="center" valign="top"&gt;&lt;br /&gt;&lt;img src="./images/aspx_indicator.gif" WIDTH=58 HEIGHT=26 BORDER=0 ALT="ASP.NET"&gt;&lt;/td&gt;
      &lt;td&gt;
      In order to begin introducing our users to some of the exciting new
      features and coding style of ASP.NET, we're publishing ASP.NET versions
      of a number of our existing samples which will be indicated by
      this symbol.  We feel the benefits to this approach are two-fold.
            &lt;ol&gt;
                  &lt;li&gt;You get some exposure to ASP.NET code (obviously)&lt;/li&gt;
                  &lt;li&gt;You get to compare the two sets of code and see the differences for yourself&lt;/li&gt;
            &lt;/ol&gt;
      &lt;/td&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;

&lt;br /&gt;

&lt;table border="10" cellspacing="0" cellpadding="1" bordercolor="#33CC33" bordercolorlight="#00CC66" bordercolordark="#006600"&gt;
&lt;tr bgcolor="#009900"&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Sample Name&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;ASP.NET&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Complexity&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;%

WriteTableRow "db_xml.asp", "ADO to XML", "Save a recordset as an XML file using ADO.", 1, False ,True
WriteTableRow "array.asp", "Array (1D)", "Sometimes one value per variable just isn't enough.", 1, False ,False
WriteTableRow "bar_chart.asp", "Bar Chart", "Turn those numbers into something useful!", 2, False ,False
WriteTableRow "bar_chart_stacked.asp", "Stacked Bar Chart", "A stacked version!", 2, False ,False
WriteTableRow "calendar.asp", "Calendar", "Darn, what day is my birthday on in 2010? I need to start planning!", 3, False ,False
WriteTableRow "case.asp", "Cases", "Demonstrates how to create and select a Case.", 1, False ,False
WriteTableRow "checkbox.asp", "Checkbox", "Find out how to handle checkboxes like a pro.", 1, False ,False
WriteTableRow "colors.asp", "Colors", "All the colors of the (color-safe palette) rainbow.", 2, False ,False
WriteTableRow "color_chooser.asp", "Color Chooser", "Sometimes it's nice to see the colors.", 1, False ,False
WriteTableRow "cookie.asp", "Cookies", "No cookie monsters here.", 1, False ,True
WriteTableRow "custom.asp", "Customization", "Let users customize their view of your site.", 2, False ,False
WriteTableRow "db_simple.asp", "Simple Database", "Uses info from a database table to build an HTML table.", 1, False ,False
WriteTableRow "database.asp", "Database", "Accessing an Access database.", 2, False ,True
WriteTableRow "db_add.asp", "Database Add", "Part 1 of our DB editing trilogy: Add!", 1, False ,True
WriteTableRow "db_del.asp", "Database Delete", "Part 2: The Delete Strikes Back!", 1, False ,False
WriteTableRow "db_update.asp", "Database Update", "Part 3: Return of the Update!", 1, False ,False
WriteTableRow "db_count.asp", "Database Count", "How to get a RecordCount that doesn't return -1!", 2, False ,True
WriteTableRow "db_edit.asp", "Database Editing", "Add, delete, and edit from one script.", 3, False ,False
WriteTableRow "db_getrows.asp", "Database GetRows", "Get all your recordset rows at once!", 2, False ,False
WriteTableRow "db_getstring.asp", "Database GetString", "No more looping through recordsets!", 2, False ,False
WriteTableRow "db_paging.asp", "Database Paging", "Previous 10, Next 10... you know you want it!", 2, False ,False
WriteTableRow "db_pulldown.asp", "Database Pulldown", "Fill your pulldowns with data from a Database!", 2, False ,True
WriteTableRow "db_pulldown_linked.asp", "Database Pulldown (Linked)", "Modify a pulldown's options based on other input.", 2, False ,False
WriteTableRow "db_search.asp", "Database Search", "Perform a simple text search on a database.", 2, False ,False
WriteTableRow "db_paged_search.asp", "Database Paged Search", "Two cool DB scripts rolled into one!", 3, False ,False
WriteTableRow "dir_list.asp", "Directory List", "Directory browsing made pretty!", 2, False ,False
WriteTableRow "dir_list_sort.asp", "Directory List (Sorted)", "Sort the results of our Dir List script.", 3, False ,False
WriteTableRow "download_sample.asp", "Download", "Get that download dialog box to pop up.", 2, False ,False
WriteTableRow "email.asp", "E-mail", "How to send an e-mail message from your web server using CDO.", 1, False ,True
WriteTableRow "email_html.asp", "E-mail (HTML)", "Send email messages as lively as a web page.", 1, False ,False
WriteTableRow "email_attach.asp", "Email (with Attachment)", "Attach files to the messages you send.", 1, False ,True
WriteTableRow "elseif.asp", "ElseIf", "No, it's not a typo...", 1, False ,False
WriteTableRow "xl.asp", "Excel", "Use Excel as a client-side data viewer.", 1, False ,False
WriteTableRow "xl_data.asp", "Excel Data", "There actually are reasons why you'd want to do this!", 2, False ,False
WriteTableRow "form_handler.asp", "Form Handler", "Some light form validation and error notification.", 2, False ,True
WriteTableRow "form_to_db.asp", "Form to DB", "Insert records retrieved from a form into a database.", 2, False ,False
WriteTableRow "function.asp", "Functions", "A basic use of a function that can save redundant code.", 1, False ,True
WriteTableRow "getpost.asp", "Get vs. Post", "The age-old debate examined via ASP.", 1, False ,False
WriteTableRow "welcome.asp", "Greeting", "Greet your user based on the time of day.", 1, False ,True
WriteTableRow "guestbook.asp", "Guestbook", "Let your guests sign in.", 2, False ,True
WriteTableRow "guestbook_top.asp", "Reverse Guestbook (Compatible)", "A guestbook where new entries go on top. (Same file format as guestbook.asp)", 2, False ,False
WriteTableRow "guestbook_top_fast.asp", "Reverse Guestbook (Faster)", "A guestbook where new entries go on top. (New file format and more efficient)", 2, False ,False
WriteTableRow "hangman.asp", "Hangman", "Just hanging around!", 3, False ,False
WriteTableRow "world.asp", "Hello World", "The classic beginning script for any language implemented in ASP.", 1, False ,True
WriteTableRow "counter.asp", "Hit Counter", "Count hits to your pages.", 1, False ,False
WriteTableRow "counter_db.asp", "Hit Counter (DB)", "Another hit counter, but using a database instead of text files.", 1, False ,False
WriteTableRow "http.asp", "Http Request", "Sometimes it's helpful to get data from other servers... here's how.", 2, False ,True
WriteTableRow "winhttp5.asp", "Http Request (WinHTTP v5.0)", "Make requests using MS's WinHTTP v5.0.", 2, False ,False
WriteTableRow "modified.asp", "Last Modified", "Get the last modified date from your ASP files.", 2, False ,False
WriteTableRow "links.asp", "Link Manager", "Manage the links on your page from your browser!", 3, False ,False
WriteTableRow "login.asp", "Login &amp; Password", "Secure an ASP page simply and easily.", 2, False ,True
WriteTableRow "min-max.asp", "Min / Max", "The highs and lows of ASP coding!", 2, False ,False
WriteTableRow "multiple_selection.asp", "Multiple Selections", "Why limit your users to one choice... let em choose away!", 1, False ,False
WriteTableRow "output.asp", "Output", "Response.Write, Carriage Returns, vbCrLf, and more fun stuff!", 1, False ,False
WriteTableRow "time.asp", "Page Timer", "How long are people spending filling out your forms?", 2, False ,False
WriteTableRow "phonemsg.asp", "Phone Message", "A virtual &amp;quot;While You Were Out&amp;quot; pad.", 2, False ,False
WriteTableRow "phone_format.asp", "Phone Number", "Format your phone numbers so they're all uniform.", 1, False ,False
WriteTableRow "polls.asp", "Poll", "Poll your users. It's like the quiz, but it's not!", 3, False ,False
WriteTableRow "pcase.asp", "Proper Case", "There's LCase and UCase... and now PCase!", 1, False ,False
WriteTableRow "pulldown_nav.asp", "Pulldown Navigation", "Navigate around your site using a pulldown box!", 2, False ,False
WriteTableRow "quiz.asp", "Quiz", "Test your visitors' knowledge!", 3, False ,False
WriteTableRow "radiobutton.asp", "Radio Button", "Not quite like the ones in your parents' old car.&lt;!--Why they're called radio buttons we'll never know.--&gt;", 1, False ,False
WriteTableRow "random_number.asp", "Random Number", "Generate a random number using ASP.", 1, False ,True
WriteTableRow "random_image.asp", "Random Image", "Not 1 or 2, but 3 ways to display a random image!", 2, False ,False
WriteTableRow "servvars.asp", "Server Variables", "Find out what your clients are telling you.", 1, False ,False
WriteTableRow "shopping.asp", "Shopping Cart", "Let's go shopping. Cool ASP 101 merchandise!", 3, False ,False
WriteTableRow "source.asp", "Source Code", "View source code of the script that lets you view our source code.", 2, False ,False
WriteTableRow "storedprocs.asp", "Stored Procs", "Using SQL Server's stored procedures isn't that hard.", 2, False ,True
WriteTableRow "storedqueries.asp", "Stored Queries (Access)", "They're not quite stored procedures, but they do work.", 2, False ,False
WriteTableRow "tell_a_friend.asp", "Tell a Friend", "Have users tell their friends about a resource on your site.", 2, False ,False
WriteTableRow "textfile.asp", "Text Files", "Learning to read and write all over again.", 2, False ,True
WriteTableRow "db_dsn.asp", "Universal DB Viewer", "View any database on the web. Just plug in your DSN and go!", 3, False ,False
WriteTableRow "url_linker.asp", "URL Linker", "Automatically link every http:// in a string", 1, False ,False
WriteTableRow "var_types.asp", "Variable Types", "Type mismatch?... but I thought everything was a variant.", 2, False ,True
WriteTableRow "wordcount.asp", "Word Count", "Counts the words and characters in a string.", 1, False ,False
WriteTableRow "wordwrap.asp", "Word Wrap", "Word wrap your text for emailing or pre tags.", 2, False ,False
WriteTableRow "y2k.asp", "Year 2000", "If the cookie monster didn't scare you this should.", 1, False ,True
%&gt;
&lt;/table&gt;

&lt;br /&gt;

&lt;p&gt;
These samples are placed here for your reference.
Each one will give you sample output, the .asp source file,
and the .htm file that is generated when a user runs the .asp
script.  This code is strictly for the sake of illustration.
Most of it includes little to no error handling and we therefore
cannot be held responsible for anything it may do when run on
your server.
&lt;/p&gt;
&lt;p&gt;
Having said that, we will not intentionally place any malicious
code here and will try and warn you of anything a script may do
which might be unexpected (ie. writing to the server's hard drive).
Still, if you do encounter any errors or side effects when attempting
to run any of our code, please let us know and we'll do our best to
assist you in getting it to run correctly and update our example
with the appropriate fix and/or warning.
&lt;/p&gt;
&lt;!--&lt;p&gt;Wheh! Now to the fun part .... the code.&lt;/p&gt;--&gt;
&lt;p&gt;
For those of you who keep asking if you can use the code
&lt;a href="license.asp"&gt;read this&lt;/a&gt;.
&lt;/p&gt;
</PRE></BODY></HTML>
0
 
LVL 5

Expert Comment

by:cempasha
ID: 8212047
Hi knowlton,
can you please post your code in here ? post probably you didnt write your asp page correctly. can you please open your asp page with notepad and write the code in here?

0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 8212076
cempasha:

Here it is from notepad:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0057)http://www.asp101.com/samples/download.asp?file=index.asp -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY><PRE><%
'*******************************************************
'*     ASP 101 Sample Code - http://www.asp101.com/    *
'*                                                     *
'*   This code is made available as a service to our   *
'*      visitors and is provided strictly for the      *
'*               purpose of illustration.              *
'*                                                     *
'*      http://www.asp101.com/samples/license.asp      *
'*                                                     *
'* Please direct all inquiries to webmaster@asp101.com *
'*******************************************************
%>

&lt;IMG SRC="../images/h_samples.gif" border=0 width=186 height=50 alt="Samples"&gt;
&lt;% HR %&gt;

&lt;%
Sub WriteTableRow(sFileName, sSampleName, sSampleDesc, iRating, bNew, bASPX)
Dim I 'As Integer
      Response.Write "&lt;tr&gt;" &amp; vbCrLf
      Response.Write vbTab &amp; "&lt;td&gt;&lt;a href=""" &amp; sFileName &amp; """&gt;" &amp; sSampleName &amp; "&lt;/a&gt;&lt;/td&gt;" &amp; vbCrLf
      Response.Write vbTab &amp; "&lt;td&gt;" &amp; sSampleDesc
      If bNew Then Response.Write "&amp;nbsp;&amp;nbsp;&lt;img src=""../images/new.gif""&gt;"
      Response.Write "&lt;/td&gt;" &amp; vbCrLf
      
      Response.Write vbTab &amp; "&lt;td align=""center""&gt;"
      If bASPX Then
            Response.Write "&lt;a href=""" &amp; Replace(sFileName, ".asp", "_aspx.asp") &amp; """&gt;&lt;img src=""./images/aspx_indicator.gif"" width=""58"" height=""26"" border=""0""&gt;&lt;/a&gt;"
      Else
            Response.Write "&amp;nbsp;"
      End If
      Response.Write "&lt;/td&gt;" &amp; vbCrLf
      
      Response.Write vbTab &amp; "&lt;td&gt;"
      For I = 1 to iRating
            Response.Write "&lt;img src=""./images/vbscript.gif"" width=""22"" height=""26""&gt;"
      Next 'I
      Response.Write "&lt;/td&gt;" &amp; vbCrLf
      Response.Write "&lt;/tr&gt;" &amp; vbCrLf
End Sub
%&gt;

&lt;TABLE BORDER=0&gt;
&lt;TR&gt;
      &lt;TD ALIGN="center"&gt;
      &lt;A HREF="./viewasp.asp?file=index.asp"&gt;
      &lt;IMG SRC="./images/viewasp.gif" WIDTH=50 HEIGHT=32 BORDER=0 ALT="ASP"&gt;&lt;/A&gt;
      &lt;/TD&gt;
      &lt;TD&gt;
      Wherever you see this image you can click on it to see
      the actual ASP code that generated the corresponding page.
      So it stands out, ASP code is displayed as
      &lt;FONT COLOR=#0000FF&gt;blue text&lt;/FONT&gt; and ASP comments are
      &lt;FONT COLOR=#009900&gt;green text&lt;/FONT&gt;.
      &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
      &lt;TD ALIGN="center"&gt;
      &lt;A HREF="./viewhtml.asp?file=index.asp"&gt;
      &lt;IMG SRC="./images/viewhtml.gif" WIDTH=50 HEIGHT=32 BORDER=0 ALT="HTML"&gt;&lt;/A&gt;
      &lt;/TD&gt;
      &lt;TD&gt;
      Likewise where you see this image you can click on it to
      see a previously run sample of HTML that was generated by
      the script.
      &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
      &lt;TD ALIGN="center"&gt;
      &lt;A HREF="./download.asp?file=index.asp"&gt;
      &lt;IMG SRC="./images/download.gif" WIDTH=86 HEIGHT=32 BORDER=0 ALT="HTML"&gt;&lt;/A&gt;
      &lt;/TD&gt;
      &lt;TD&gt;
      Due to popular demand, when you click on this image, you'll
      get      a plain      text version of the script.  You can either save
      the whole file or cut and paste it directly into your own script!
      &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
      &lt;td align="center" valign="top"&gt;&lt;br /&gt;&lt;img src="./images/aspx_indicator.gif" WIDTH=58 HEIGHT=26 BORDER=0 ALT="ASP.NET"&gt;&lt;/td&gt;
      &lt;td&gt;
      In order to begin introducing our users to some of the exciting new
      features and coding style of ASP.NET, we're publishing ASP.NET versions
      of a number of our existing samples which will be indicated by
      this symbol.  We feel the benefits to this approach are two-fold.
            &lt;ol&gt;
                  &lt;li&gt;You get some exposure to ASP.NET code (obviously)&lt;/li&gt;
                  &lt;li&gt;You get to compare the two sets of code and see the differences for yourself&lt;/li&gt;
            &lt;/ol&gt;
      &lt;/td&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;

&lt;br /&gt;

&lt;table border="10" cellspacing="0" cellpadding="1" bordercolor="#33CC33" bordercolorlight="#00CC66" bordercolordark="#006600"&gt;
&lt;tr bgcolor="#009900"&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Sample Name&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;ASP.NET&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
      &lt;td bgcolor="#009900"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Complexity&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;%

WriteTableRow "db_xml.asp", "ADO to XML", "Save a recordset as an XML file using ADO.", 1, False ,True
WriteTableRow "array.asp", "Array (1D)", "Sometimes one value per variable just isn't enough.", 1, False ,False
WriteTableRow "bar_chart.asp", "Bar Chart", "Turn those numbers into something useful!", 2, False ,False
WriteTableRow "bar_chart_stacked.asp", "Stacked Bar Chart", "A stacked version!", 2, False ,False
WriteTableRow "calendar.asp", "Calendar", "Darn, what day is my birthday on in 2010? I need to start planning!", 3, False ,False
WriteTableRow "case.asp", "Cases", "Demonstrates how to create and select a Case.", 1, False ,False
WriteTableRow "checkbox.asp", "Checkbox", "Find out how to handle checkboxes like a pro.", 1, False ,False
WriteTableRow "colors.asp", "Colors", "All the colors of the (color-safe palette) rainbow.", 2, False ,False
WriteTableRow "color_chooser.asp", "Color Chooser", "Sometimes it's nice to see the colors.", 1, False ,False
WriteTableRow "cookie.asp", "Cookies", "No cookie monsters here.", 1, False ,True
WriteTableRow "custom.asp", "Customization", "Let users customize their view of your site.", 2, False ,False
WriteTableRow "db_simple.asp", "Simple Database", "Uses info from a database table to build an HTML table.", 1, False ,False
WriteTableRow "database.asp", "Database", "Accessing an Access database.", 2, False ,True
WriteTableRow "db_add.asp", "Database Add", "Part 1 of our DB editing trilogy: Add!", 1, False ,True
WriteTableRow "db_del.asp", "Database Delete", "Part 2: The Delete Strikes Back!", 1, False ,False
WriteTableRow "db_update.asp", "Database Update", "Part 3: Return of the Update!", 1, False ,False
WriteTableRow "db_count.asp", "Database Count", "How to get a RecordCount that doesn't return -1!", 2, False ,True
WriteTableRow "db_edit.asp", "Database Editing", "Add, delete, and edit from one script.", 3, False ,False
WriteTableRow "db_getrows.asp", "Database GetRows", "Get all your recordset rows at once!", 2, False ,False
WriteTableRow "db_getstring.asp", "Database GetString", "No more looping through recordsets!", 2, False ,False
WriteTableRow "db_paging.asp", "Database Paging", "Previous 10, Next 10... you know you want it!", 2, False ,False
WriteTableRow "db_pulldown.asp", "Database Pulldown", "Fill your pulldowns with data from a Database!", 2, False ,True
WriteTableRow "db_pulldown_linked.asp", "Database Pulldown (Linked)", "Modify a pulldown's options based on other input.", 2, False ,False
WriteTableRow "db_search.asp", "Database Search", "Perform a simple text search on a database.", 2, False ,False
WriteTableRow "db_paged_search.asp", "Database Paged Search", "Two cool DB scripts rolled into one!", 3, False ,False
WriteTableRow "dir_list.asp", "Directory List", "Directory browsing made pretty!", 2, False ,False
WriteTableRow "dir_list_sort.asp", "Directory List (Sorted)", "Sort the results of our Dir List script.", 3, False ,False
WriteTableRow "download_sample.asp", "Download", "Get that download dialog box to pop up.", 2, False ,False
WriteTableRow "email.asp", "E-mail", "How to send an e-mail message from your web server using CDO.", 1, False ,True
WriteTableRow "email_html.asp", "E-mail (HTML)", "Send email messages as lively as a web page.", 1, False ,False
WriteTableRow "email_attach.asp", "Email (with Attachment)", "Attach files to the messages you send.", 1, False ,True
WriteTableRow "elseif.asp", "ElseIf", "No, it's not a typo...", 1, False ,False
WriteTableRow "xl.asp", "Excel", "Use Excel as a client-side data viewer.", 1, False ,False
WriteTableRow "xl_data.asp", "Excel Data", "There actually are reasons why you'd want to do this!", 2, False ,False
WriteTableRow "form_handler.asp", "Form Handler", "Some light form validation and error notification.", 2, False ,True
WriteTableRow "form_to_db.asp", "Form to DB", "Insert records retrieved from a form into a database.", 2, False ,False
WriteTableRow "function.asp", "Functions", "A basic use of a function that can save redundant code.", 1, False ,True
WriteTableRow "getpost.asp", "Get vs. Post", "The age-old debate examined via ASP.", 1, False ,False
WriteTableRow "welcome.asp", "Greeting", "Greet your user based on the time of day.", 1, False ,True
WriteTableRow "guestbook.asp", "Guestbook", "Let your guests sign in.", 2, False ,True
WriteTableRow "guestbook_top.asp", "Reverse Guestbook (Compatible)", "A guestbook where new entries go on top. (Same file format as guestbook.asp)", 2, False ,False
WriteTableRow "guestbook_top_fast.asp", "Reverse Guestbook (Faster)", "A guestbook where new entries go on top. (New file format and more efficient)", 2, False ,False
WriteTableRow "hangman.asp", "Hangman", "Just hanging around!", 3, False ,False
WriteTableRow "world.asp", "Hello World", "The classic beginning script for any language implemented in ASP.", 1, False ,True
WriteTableRow "counter.asp", "Hit Counter", "Count hits to your pages.", 1, False ,False
WriteTableRow "counter_db.asp", "Hit Counter (DB)", "Another hit counter, but using a database instead of text files.", 1, False ,False
WriteTableRow "http.asp", "Http Request", "Sometimes it's helpful to get data from other servers... here's how.", 2, False ,True
WriteTableRow "winhttp5.asp", "Http Request (WinHTTP v5.0)", "Make requests using MS's WinHTTP v5.0.", 2, False ,False
WriteTableRow "modified.asp", "Last Modified", "Get the last modified date from your ASP files.", 2, False ,False
WriteTableRow "links.asp", "Link Manager", "Manage the links on your page from your browser!", 3, False ,False
WriteTableRow "login.asp", "Login &amp; Password", "Secure an ASP page simply and easily.", 2, False ,True
WriteTableRow "min-max.asp", "Min / Max", "The highs and lows of ASP coding!", 2, False ,False
WriteTableRow "multiple_selection.asp", "Multiple Selections", "Why limit your users to one choice... let em choose away!", 1, False ,False
WriteTableRow "output.asp", "Output", "Response.Write, Carriage Returns, vbCrLf, and more fun stuff!", 1, False ,False
WriteTableRow "time.asp", "Page Timer", "How long are people spending filling out your forms?", 2, False ,False
WriteTableRow "phonemsg.asp", "Phone Message", "A virtual &amp;quot;While You Were Out&amp;quot; pad.", 2, False ,False
WriteTableRow "phone_format.asp", "Phone Number", "Format your phone numbers so they're all uniform.", 1, False ,False
WriteTableRow "polls.asp", "Poll", "Poll your users. It's like the quiz, but it's not!", 3, False ,False
WriteTableRow "pcase.asp", "Proper Case", "There's LCase and UCase... and now PCase!", 1, False ,False
WriteTableRow "pulldown_nav.asp", "Pulldown Navigation", "Navigate around your site using a pulldown box!", 2, False ,False
WriteTableRow "quiz.asp", "Quiz", "Test your visitors' knowledge!", 3, False ,False
WriteTableRow "radiobutton.asp", "Radio Button", "Not quite like the ones in your parents' old car.&lt;!--Why they're called radio buttons we'll never know.--&gt;", 1, False ,False
WriteTableRow "random_number.asp", "Random Number", "Generate a random number using ASP.", 1, False ,True
WriteTableRow "random_image.asp", "Random Image", "Not 1 or 2, but 3 ways to display a random image!", 2, False ,False
WriteTableRow "servvars.asp", "Server Variables", "Find out what your clients are telling you.", 1, False ,False
WriteTableRow "shopping.asp", "Shopping Cart", "Let's go shopping. Cool ASP 101 merchandise!", 3, False ,False
WriteTableRow "source.asp", "Source Code", "View source code of the script that lets you view our source code.", 2, False ,False
WriteTableRow "storedprocs.asp", "Stored Procs", "Using SQL Server's stored procedures isn't that hard.", 2, False ,True
WriteTableRow "storedqueries.asp", "Stored Queries (Access)", "They're not quite stored procedures, but they do work.", 2, False ,False
WriteTableRow "tell_a_friend.asp", "Tell a Friend", "Have users tell their friends about a resource on your site.", 2, False ,False
WriteTableRow "textfile.asp", "Text Files", "Learning to read and write all over again.", 2, False ,True
WriteTableRow "db_dsn.asp", "Universal DB Viewer", "View any database on the web. Just plug in your DSN and go!", 3, False ,False
WriteTableRow "url_linker.asp", "URL Linker", "Automatically link every http:// in a string", 1, False ,False
WriteTableRow "var_types.asp", "Variable Types", "Type mismatch?... but I thought everything was a variant.", 2, False ,True
WriteTableRow "wordcount.asp", "Word Count", "Counts the words and characters in a string.", 1, False ,False
WriteTableRow "wordwrap.asp", "Word Wrap", "Word wrap your text for emailing or pre tags.", 2, False ,False
WriteTableRow "y2k.asp", "Year 2000", "If the cookie monster didn't scare you this should.", 1, False ,True
%&gt;
&lt;/table&gt;

&lt;br /&gt;

&lt;p&gt;
These samples are placed here for your reference.
Each one will give you sample output, the .asp source file,
and the .htm file that is generated when a user runs the .asp
script.  This code is strictly for the sake of illustration.
Most of it includes little to no error handling and we therefore
cannot be held responsible for anything it may do when run on
your server.
&lt;/p&gt;
&lt;p&gt;
Having said that, we will not intentionally place any malicious
code here and will try and warn you of anything a script may do
which might be unexpected (ie. writing to the server's hard drive).
Still, if you do encounter any errors or side effects when attempting
to run any of our code, please let us know and we'll do our best to
assist you in getting it to run correctly and update our example
with the appropriate fix and/or warning.
&lt;/p&gt;
&lt;!--&lt;p&gt;Wheh! Now to the fun part .... the code.&lt;/p&gt;--&gt;
&lt;p&gt;
For those of you who keep asking if you can use the code
&lt;a href="license.asp"&gt;read this&lt;/a&gt;.
&lt;/p&gt;
</PRE></BODY></HTML>
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Expert Comment

by:cempasha
ID: 8212082
knowlton,
use this as your source
0
 
LVL 5

Accepted Solution

by:
cempasha earned 200 total points
ID: 8212091
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0057)http://www.asp101.com/samples/download.asp?file=index.asp -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY><PRE><%
'*******************************************************
'*     ASP 101 Sample Code - http://www.asp101.com/   *
'*                                                     *
'*   This code is made available as a service to our   *
'*      visitors and is provided strictly for the      *
'*               purpose of illustration.              *
'*                                                     *
'*      http://www.asp101.com/samples/license.asp     *
'*                                                     *
'* Please direct all inquiries to webmaster@asp101.com *
'*******************************************************
%>



<IMG SRC="../images/h_samples.gif" border=0 width=186 height=50 alt="Samples">
<% HR %>

<%
Sub WriteTableRow(sFileName, sSampleName, sSampleDesc, iRating, bNew, bASPX)
Dim I 'As Integer
     Response.Write "<tr>" & vbCrLf
     Response.Write vbTab & "<td><a href=""" & sFileName & """>" & sSampleName & "</a></td>" & vbCrLf
     Response.Write vbTab & "<td>" & sSampleDesc
     If bNew Then Response.Write "&nbsp;&nbsp;<img src=""../images/new.gif"">"
     Response.Write "</td>" & vbCrLf
     
     Response.Write vbTab & "<td align=""center"">"
     If bASPX Then
          Response.Write "<a href=""" & Replace(sFileName, ".asp", "_aspx.asp") & """><img src=""./images/aspx_indicator.gif"" width=""58"" height=""26"" border=""0""></a>"
     Else
          Response.Write "&nbsp;"
     End If
     Response.Write "</td>" & vbCrLf
     
     Response.Write vbTab & "<td>"
     For I = 1 to iRating
          Response.Write "<img src=""./images/vbscript.gif"" width=""22"" height=""26"">"
     Next 'I
     Response.Write "</td>" & vbCrLf
     Response.Write "</tr>" & vbCrLf
End Sub
%>

<TABLE BORDER=0>
<TR>
     <TD ALIGN="center">
     <A HREF="./viewasp.asp?file=index.asp">
     <IMG SRC="./images/viewasp.gif" WIDTH=50 HEIGHT=32 BORDER=0 ALT="ASP"></A>
     </TD>
     <TD>
     Wherever you see this image you can click on it to see
     the actual ASP code that generated the corresponding page.
     So it stands out, ASP code is displayed as
     <FONT COLOR=#0000FF>blue text</FONT> and ASP comments are
     <FONT COLOR=#009900>green text</FONT>.
     </TD>
</TR>
<TR>
     <TD ALIGN="center">
     <A HREF="./viewhtml.asp?file=index.asp">
     <IMG SRC="./images/viewhtml.gif" WIDTH=50 HEIGHT=32 BORDER=0 ALT="HTML"></A>
     </TD>
     <TD>
     Likewise where you see this image you can click on it to
     see a previously run sample of HTML that was generated by
     the script.
     </TD>
</TR>
<TR>
     <TD ALIGN="center">
     <A HREF="./download.asp?file=index.asp">
     <IMG SRC="./images/download.gif" WIDTH=86 HEIGHT=32 BORDER=0 ALT="HTML"></A>
     </TD>
     <TD>
     Due to popular demand, when you click on this image, you'll
     get     a plain     text version of the script.  You can either save
     the whole file or cut and paste it directly into your own script!
     </TD>
</TR>
<TR>
     <td align="center" valign="top"><br /><img src="./images/aspx_indicator.gif" WIDTH=58 HEIGHT=26 BORDER=0 ALT="ASP.NET"></td>
     <td>
     In order to begin introducing our users to some of the exciting new
     features and coding style of ASP.NET, we're publishing ASP.NET versions
     of a number of our existing samples which will be indicated by
     this symbol.  We feel the benefits to this approach are two-fold.
          <ol>
               <li>You get some exposure to ASP.NET code (obviously)</li>
               <li>You get to compare the two sets of code and see the differences for yourself</li>
          </ol>
     </td>
</TR>
</TABLE>

<br />

<table border="10" cellspacing="0" cellpadding="1" bordercolor="#33CC33" bordercolorlight="#00CC66" bordercolordark="#006600">
<tr bgcolor="#009900">
     <td bgcolor="#009900"><font color="#FFFFFF"><b>Sample Name</b></font></td>
     <td bgcolor="#009900"><font color="#FFFFFF"><b>Description</b></font></td>
     <td bgcolor="#009900"><font color="#FFFFFF"><b>ASP.NET</b></font></td>
     <td bgcolor="#009900"><font color="#FFFFFF"><b>Complexity</b></font></td>
</tr>
<%

WriteTableRow "db_xml.asp", "ADO to XML", "Save a recordset as an XML file using ADO.", 1, False ,True
WriteTableRow "array.asp", "Array (1D)", "Sometimes one value per variable just isn't enough.", 1, False ,False
WriteTableRow "bar_chart.asp", "Bar Chart", "Turn those numbers into something useful!", 2, False ,False
WriteTableRow "bar_chart_stacked.asp", "Stacked Bar Chart", "A stacked version!", 2, False ,False
WriteTableRow "calendar.asp", "Calendar", "Darn, what day is my birthday on in 2010? I need to start planning!", 3, False ,False
WriteTableRow "case.asp", "Cases", "Demonstrates how to create and select a Case.", 1, False ,False
WriteTableRow "checkbox.asp", "Checkbox", "Find out how to handle checkboxes like a pro.", 1, False ,False
WriteTableRow "colors.asp", "Colors", "All the colors of the (color-safe palette) rainbow.", 2, False ,False
WriteTableRow "color_chooser.asp", "Color Chooser", "Sometimes it's nice to see the colors.", 1, False ,False
WriteTableRow "cookie.asp", "Cookies", "No cookie monsters here.", 1, False ,True
WriteTableRow "custom.asp", "Customization", "Let users customize their view of your site.", 2, False ,False
WriteTableRow "db_simple.asp", "Simple Database", "Uses info from a database table to build an HTML table.", 1, False ,False
WriteTableRow "database.asp", "Database", "Accessing an Access database.", 2, False ,True
WriteTableRow "db_add.asp", "Database Add", "Part 1 of our DB editing trilogy: Add!", 1, False ,True
WriteTableRow "db_del.asp", "Database Delete", "Part 2: The Delete Strikes Back!", 1, False ,False
WriteTableRow "db_update.asp", "Database Update", "Part 3: Return of the Update!", 1, False ,False
WriteTableRow "db_count.asp", "Database Count", "How to get a RecordCount that doesn't return -1!", 2, False ,True
WriteTableRow "db_edit.asp", "Database Editing", "Add, delete, and edit from one script.", 3, False ,False
WriteTableRow "db_getrows.asp", "Database GetRows", "Get all your recordset rows at once!", 2, False ,False
WriteTableRow "db_getstring.asp", "Database GetString", "No more looping through recordsets!", 2, False ,False
WriteTableRow "db_paging.asp", "Database Paging", "Previous 10, Next 10... you know you want it!", 2, False ,False
WriteTableRow "db_pulldown.asp", "Database Pulldown", "Fill your pulldowns with data from a Database!", 2, False ,True
WriteTableRow "db_pulldown_linked.asp", "Database Pulldown (Linked)", "Modify a pulldown's options based on other input.", 2, False ,False
WriteTableRow "db_search.asp", "Database Search", "Perform a simple text search on a database.", 2, False ,False
WriteTableRow "db_paged_search.asp", "Database Paged Search", "Two cool DB scripts rolled into one!", 3, False ,False
WriteTableRow "dir_list.asp", "Directory List", "Directory browsing made pretty!", 2, False ,False
WriteTableRow "dir_list_sort.asp", "Directory List (Sorted)", "Sort the results of our Dir List script.", 3, False ,False
WriteTableRow "download_sample.asp", "Download", "Get that download dialog box to pop up.", 2, False ,False
WriteTableRow "email.asp", "E-mail", "How to send an e-mail message from your web server using CDO.", 1, False ,True
WriteTableRow "email_html.asp", "E-mail (HTML)", "Send email messages as lively as a web page.", 1, False ,False
WriteTableRow "email_attach.asp", "Email (with Attachment)", "Attach files to the messages you send.", 1, False ,True
WriteTableRow "elseif.asp", "ElseIf", "No, it's not a typo...", 1, False ,False
WriteTableRow "xl.asp", "Excel", "Use Excel as a client-side data viewer.", 1, False ,False
WriteTableRow "xl_data.asp", "Excel Data", "There actually are reasons why you'd want to do this!", 2, False ,False
WriteTableRow "form_handler.asp", "Form Handler", "Some light form validation and error notification.", 2, False ,True
WriteTableRow "form_to_db.asp", "Form to DB", "Insert records retrieved from a form into a database.", 2, False ,False
WriteTableRow "function.asp", "Functions", "A basic use of a function that can save redundant code.", 1, False ,True
WriteTableRow "getpost.asp", "Get vs. Post", "The age-old debate examined via ASP.", 1, False ,False
WriteTableRow "welcome.asp", "Greeting", "Greet your user based on the time of day.", 1, False ,True
WriteTableRow "guestbook.asp", "Guestbook", "Let your guests sign in.", 2, False ,True
WriteTableRow "guestbook_top.asp", "Reverse Guestbook (Compatible)", "A guestbook where new entries go on top. (Same file format as guestbook.asp)", 2, False ,False
WriteTableRow "guestbook_top_fast.asp", "Reverse Guestbook (Faster)", "A guestbook where new entries go on top. (New file format and more efficient)", 2, False ,False
WriteTableRow "hangman.asp", "Hangman", "Just hanging around!", 3, False ,False
WriteTableRow "world.asp", "Hello World", "The classic beginning script for any language implemented in ASP.", 1, False ,True
WriteTableRow "counter.asp", "Hit Counter", "Count hits to your pages.", 1, False ,False
WriteTableRow "counter_db.asp", "Hit Counter (DB)", "Another hit counter, but using a database instead of text files.", 1, False ,False
WriteTableRow "http.asp", "Http Request", "Sometimes it's helpful to get data from other servers... here's how.", 2, False ,True
WriteTableRow "winhttp5.asp", "Http Request (WinHTTP v5.0)", "Make requests using MS's WinHTTP v5.0.", 2, False ,False
WriteTableRow "modified.asp", "Last Modified", "Get the last modified date from your ASP files.", 2, False ,False
WriteTableRow "links.asp", "Link Manager", "Manage the links on your page from your browser!", 3, False ,False
WriteTableRow "login.asp", "Login & Password", "Secure an ASP page simply and easily.", 2, False ,True
WriteTableRow "min-max.asp", "Min / Max", "The highs and lows of ASP coding!", 2, False ,False
WriteTableRow "multiple_selection.asp", "Multiple Selections", "Why limit your users to one choice... let em choose away!", 1, False ,False
WriteTableRow "output.asp", "Output", "Response.Write, Carriage Returns, vbCrLf, and more fun stuff!", 1, False ,False
WriteTableRow "time.asp", "Page Timer", "How long are people spending filling out your forms?", 2, False ,False
WriteTableRow "phonemsg.asp", "Phone Message", "A virtual &quot;While You Were Out&quot; pad.", 2, False ,False
WriteTableRow "phone_format.asp", "Phone Number", "Format your phone numbers so they're all uniform.", 1, False ,False
WriteTableRow "polls.asp", "Poll", "Poll your users. It's like the quiz, but it's not!", 3, False ,False
WriteTableRow "pcase.asp", "Proper Case", "There's LCase and UCase... and now PCase!", 1, False ,False
WriteTableRow "pulldown_nav.asp", "Pulldown Navigation", "Navigate around your site using a pulldown box!", 2, False ,False
WriteTableRow "quiz.asp", "Quiz", "Test your visitors' knowledge!", 3, False ,False
WriteTableRow "radiobutton.asp", "Radio Button", "Not quite like the ones in your parents' old car.<!--Why they're called radio buttons we'll never know.-->", 1, False ,False
WriteTableRow "random_number.asp", "Random Number", "Generate a random number using ASP.", 1, False ,True
WriteTableRow "random_image.asp", "Random Image", "Not 1 or 2, but 3 ways to display a random image!", 2, False ,False
WriteTableRow "servvars.asp", "Server Variables", "Find out what your clients are telling you.", 1, False ,False
WriteTableRow "shopping.asp", "Shopping Cart", "Let's go shopping. Cool ASP 101 merchandise!", 3, False ,False
WriteTableRow "source.asp", "Source Code", "View source code of the script that lets you view our source code.", 2, False ,False
WriteTableRow "storedprocs.asp", "Stored Procs", "Using SQL Server's stored procedures isn't that hard.", 2, False ,True
WriteTableRow "storedqueries.asp", "Stored Queries (Access)", "They're not quite stored procedures, but they do work.", 2, False ,False
WriteTableRow "tell_a_friend.asp", "Tell a Friend", "Have users tell their friends about a resource on your site.", 2, False ,False
WriteTableRow "textfile.asp", "Text Files", "Learning to read and write all over again.", 2, False ,True
WriteTableRow "db_dsn.asp", "Universal DB Viewer", "View any database on the web. Just plug in your DSN and go!", 3, False ,False
WriteTableRow "url_linker.asp", "URL Linker", "Automatically link every http:// in a string", 1, False ,False
WriteTableRow "var_types.asp", "Variable Types", "Type mismatch?... but I thought everything was a variant.", 2, False ,True
WriteTableRow "wordcount.asp", "Word Count", "Counts the words and characters in a string.", 1, False ,False
WriteTableRow "wordwrap.asp", "Word Wrap", "Word wrap your text for emailing or pre tags.", 2, False ,False
WriteTableRow "y2k.asp", "Year 2000", "If the cookie monster didn't scare you this should.", 1, False ,True
%>
</table>

<br />

<p>
These samples are placed here for your reference.
Each one will give you sample output, the .asp source file,
and the .htm file that is generated when a user runs the .asp
script.  This code is strictly for the sake of illustration.
Most of it includes little to no error handling and we therefore
cannot be held responsible for anything it may do when run on
your server.
</p>
<p>
Having said that, we will not intentionally place any malicious
code here and will try and warn you of anything a script may do
which might be unexpected (ie. writing to the server's hard drive).
Still, if you do encounter any errors or side effects when attempting
to run any of our code, please let us know and we'll do our best to
assist you in getting it to run correctly and update our example
with the appropriate fix and/or warning.
</p>
<!--<p>Wheh! Now to the fun part .... the code.</p>-->
<p>
For those of you who keep asking if you can use the code
<a href="license.asp">read this</a>.
</p>


</PRE></BODY></HTML>
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 8212098
Was it the

<% HR %>

That was causing trouble?
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 8212121
How do you "comment" a line in ASP (so it won't get processed)
0
 
LVL 5

Expert Comment

by:cempasha
ID: 8212154
the problem was
when you use a WYSIWYG (what you see is what you get - for example Microsoft Frontpage) if you type type < it will add the code as "&lt;" so you have to copy - paste your code to html source section not to normal part.

all the problem was caused because of < > tags
if you check your first post and compare < > 's you will understand what i mean..

also if you want to make a comment
lets say

<% dim something, pasha, knowlton
knowlton = request.form("name") ' this is how you make comment
%>


if you put a ' after the line you can make comments
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 8212219
Thanks
0
 
LVL 5

Expert Comment

by:cempasha
ID: 8212258
you'r welcome
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question