|
VWD 2008 Express: Creating a new web-site |
Creating a new web site

|
Step-2

|
Create a site and then rename default.aspx to Custom-default.aspx; you
will notice this will also change the name of " aspx.cs" page that runs to
support this aspx.page

|
Code of default.aspx.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>default.aspx VWD website-3511</title>
</head>
<body>
<form id="form1" runat="server" >
<div style="background-color: #FFFFCC; border: medium double #800080;
width: 367px; height: 61px; margin-left: 13px; margin-top: 28px;">
This is a div-html-element, will run as a simple html page.
</div>
</form>
</body>
</html>
|
Web.config. (watch out you may need to numb some libraries in
default.aspx.cs) especially LINQ libraries. This is the most simplest
web.config you need to run your pages.
(you care your own configuration, therefore write at least a minimum to
get going)
<?xml version="1.0"?>
<configuration>
<system.web>
<authentication mode="Forms">
<forms
loginUrl="default.aspx" protection="All" timeout="60"/>
</authentication>
<authorization>
<allow/>
</authorization>
<compilation debug="true"/>
</system.web>
</configuration>
|
using System;
using System.Configuration;
using System.Data;
//using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
//using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
|
The file structure may look like this.

|
You may have to view with inbuilt server or hard typing in an internet
explorer. In this computer I used XP-Pro and that has Internet server,

|
Runtime views: Note the page opens default.aspx

|
| |
| |
| |
| |
| |