Using a Text Editor to Develop and Deploy an ASP.NET Web Application
page 4 of 8
by Andrew Mooney
Feedback
Average Rating: 
Views (Total / Last 10 Days): 38254/ 141

Creating our Sample Application

Create a new directory named WebApp1. If your using IIS create a new virtual directory named WebApp1 that points to this directory and on the ASP.NET tab select version 2.0.

If you are using Crimson Editor create a new project named WebApp1 by selecting New Project from the Project menu. Save this file named WebApp1.prj in the directory you created (Optional).

Using your text editor, create a new text file, copy Listing 1 into it and save the file as Default.aspx.

Listing 1 - Default.aspx

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Home Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<p>Home Page Content (Default.aspx).</p>
</asp:Content>

Using your text editor, create a new text file, copy Listing 2 into it and save the file as Web.config.

Listing 2 - Web.config

<?xml version="1.0"?>
<configuration>
      <appSettings/>
      <connectionStrings/>
      <system.web>
            <compilation debug="true" strict="false" explicit="true"/>
      </system.web>
</configuration>

Using your text editor, create a new text file, copy Listing 3 into it and save the file as Default.aspx.

Listing 3 - MasterPage.master

<%@ Master Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Your Web Site</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <p>Master Page Content.</p>
        <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
        </asp:contentplaceholder>
    </div>
    </form>
</body>
</html>

If you are using Crimson Editor and have these 3 files still open, you can click the Add All Open Files to Project button and then all 3 files should now be visible in the Project view. With Crimson Editor you can add and remove files from the project at anytime using the Project view.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2020 ASPAlliance.com  |  Page Processed at 2020-07-05 10:59:13 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search