How to use Notepad to create a simple ASP page
- From the Windows Start menu, point to Programs, point to Accessories, and then click Notepad.
- Highlight the following code, right-click the code, and then click Copy. In Notepad, click Paste on the Edit menu to paste the following code into Notepad:The preceding code illustrates some of the standard tags that are frequently used with ASP page development. Note that you can place your ASP code anywhere in the document, including either before or after the <HTML></HTML> tags. Where you place the ASP code in your page depends on the purpose of the code.
<TITLE>Page Title goes here</TITLE>
ASP code goes here, between the opening and
- In Notepad, click Save on the File menu. In the Save As dialog box, in the Save In drop-down list box, click C:. Browse to the root location of your Web server. Typically, this is C:\InetPub\Wwwroot.In the File name drop-down list box, type MyAspPage.asp). In the Save as type drop-down list box, click All Files. Finally, click Save.
- To view the page, start your Web browser, and type the HTTP location of the page in the Address bar. If you saved the file in the above-mentioned location, type the following address in the Address bar:http://<servername>/MyAspPage.asp
TroubleshootingYou can use Notepad as an HTML or ASP editor if you know how to write code or are simply copying and pasting code to create a page. However, Notepad does not offer any help or tips on how to create these types of pages. If you need this type of editing support, use programs such as Microsoft FrontPage or Microsoft Visual InterDev. These programs also offer site management and publishing tools that can help you organize and publish your site content.
Article ID: 301496 - Last Review: Aug 31, 2005 - Revision: 1