You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
507 lines
14 KiB
507 lines
14 KiB
<?xml version="1.0"?> |
|
<Template originator = "Tom Schroeter" |
|
created = "24/03/2006" |
|
lastModified = "24/03/2006"> |
|
|
|
<!-- Template Header --> |
|
<TemplateConfiguration> |
|
<Name>${res:Templates.Project.WebPage.Name}</Name> |
|
<Category>C#</Category> |
|
<Subcategory>ASP.NET</Subcategory> |
|
<Icon>C#.Project.Form</Icon> |
|
<LanguageName>C#</LanguageName> |
|
<Description>${res:Templates.Project.WebPage.Description}</Description> |
|
</TemplateConfiguration> |
|
|
|
<!-- Actions --> |
|
<Actions> |
|
<Open filename = ".\Default.aspx"/> |
|
<Open filename = ".\Default.aspx.cs"/> |
|
</Actions> |
|
|
|
<Combine name = "${ProjectName}" directory = "."> |
|
<Options> |
|
<StartupProject>${ProjectName}</StartupProject> |
|
</Options> |
|
|
|
<Project name = "${ProjectName}" directory = "."> |
|
<Options OutputType = "Library" /> |
|
|
|
<ProjectItems> |
|
<Reference Include="System" /> |
|
<Reference Include="System.Data" /> |
|
<Reference Include="System.Xml" /> |
|
<Reference Include="System.Web" /> |
|
<Reference Include="System.Drawing" /> |
|
<Reference Include="System.Web.Services" /> |
|
</ProjectItems> |
|
|
|
<PropertyGroup> |
|
<OutputPath>bin\</OutputPath> |
|
</PropertyGroup> |
|
|
|
<Files> |
|
<!--*************************************************************************--> |
|
<File name=".\Default.aspx.cs" dependentUpon="Default.aspx"><![CDATA[${StandardHeader.C#} |
|
|
|
using System; |
|
using System.Collections; |
|
using System.ComponentModel; |
|
using System.Data; |
|
using System.Drawing; |
|
using System.Web; |
|
using System.Web.SessionState; |
|
using System.Web.UI; |
|
using System.Web.UI.WebControls; |
|
using System.Web.UI.HtmlControls; |
|
|
|
namespace ${StandardNamespace} |
|
{ |
|
/// <summary> |
|
/// Description of MainForm. |
|
/// </summary> |
|
public class Default : Page |
|
{ |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region Data |
|
|
|
protected HtmlInputButton _Button_Ok; |
|
protected HtmlInputText _Input_Name; |
|
|
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region Page Init & Exit (Open/Close DB connections here...) |
|
|
|
protected void PageInit(object sender, EventArgs e) |
|
{ |
|
} |
|
//---------------------------------------------------------------------- |
|
protected void PageExit(object sender, EventArgs e) |
|
{ |
|
} |
|
|
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region Page Load |
|
private void Page_Load(object sender, EventArgs e) |
|
{ |
|
Response.Write(@"Hello #Develop<br>"); |
|
//------------------------------------------------------------------ |
|
if(IsPostBack) |
|
{ |
|
} |
|
//------------------------------------------------------------------ |
|
} |
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region Click_Button_OK |
|
|
|
//---------------------------------------------------------------------- |
|
protected void Click_Button_Ok(object sender, EventArgs e) |
|
{ |
|
Response.Write( _Button_Ok.Value + " was cklicked!<br>"); |
|
} |
|
|
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region Changed_Input_Name |
|
|
|
//---------------------------------------------------------------------- |
|
protected void Changed_Input_Name(object sender, EventArgs e) |
|
{ |
|
Response.Write( _Input_Name.Value + " has changed!<br>"); |
|
} |
|
|
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region More... |
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region Initialize Component |
|
|
|
protected override void OnInit(EventArgs e) |
|
{ |
|
InitializeComponent(); |
|
base.OnInit(e); |
|
} |
|
//---------------------------------------------------------------------- |
|
private void InitializeComponent() |
|
{ |
|
this.Load += new System.EventHandler(Page_Load); |
|
this.Init += new System.EventHandler(PageInit); |
|
this.Unload += new System.EventHandler(PageExit); |
|
|
|
_Button_Ok.ServerClick += new EventHandler(Click_Button_Ok); |
|
_Input_Name.ServerChange += new EventHandler(Changed_Input_Name); |
|
} |
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
} |
|
}]]></File> |
|
<!--*************************************************************************--> |
|
<File name=".\AssemblyInfo.cs"> |
|
<![CDATA[using System.Reflection; |
|
using System.Runtime.CompilerServices; |
|
|
|
// Information about this assembly is defined by the following |
|
// attributes. |
|
// |
|
// change them to the information which is associated with the assembly |
|
// you compile. |
|
|
|
[assembly: AssemblyTitle("")] |
|
[assembly: AssemblyDescription("")] |
|
[assembly: AssemblyConfiguration("")] |
|
[assembly: AssemblyCompany("")] |
|
[assembly: AssemblyProduct("")] |
|
[assembly: AssemblyCopyright("")] |
|
[assembly: AssemblyTrademark("")] |
|
[assembly: AssemblyCulture("")] |
|
|
|
// The assembly version has following format : |
|
// |
|
// Major.Minor.Build.Revision |
|
// |
|
// You can specify all values by your own or you can build default build and revision |
|
// numbers with the '*' character (the default): |
|
|
|
[assembly: AssemblyVersion("1.0.0.0")] |
|
|
|
]]></File> |
|
<!--*************************************************************************--> |
|
<File name="Global.asax" language="HTML"> |
|
<![CDATA[<%@ Application Codebehind="Global.cs" |
|
Inherits="${StandardNamespace}.Global" |
|
%> |
|
]]></File> |
|
<!--*************************************************************************--> |
|
<File name=".\Global.asax.cs" dependentUpon="Global.asax"> |
|
<![CDATA[ |
|
using System; |
|
using System.Collections; |
|
using System.ComponentModel; |
|
using System.Web; |
|
using System.Web.SessionState; |
|
|
|
namespace ${StandardNamespace} |
|
{ |
|
/// <summary> |
|
/// Summary description for Global. |
|
/// </summary> |
|
public class Global : HttpApplication |
|
{ |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
#region global |
|
/// <summary> |
|
/// Required designer variable. |
|
/// </summary> |
|
//private System.ComponentModel.IContainer components = null; |
|
|
|
public Global() |
|
{ |
|
InitializeComponent(); |
|
} |
|
|
|
#endregion |
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
|
|
protected void Application_Start(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
protected void Session_Start(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
protected void Application_BeginRequest(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
protected void Application_EndRequest(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
protected void Application_AuthenticateRequest(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
protected void Application_Error(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
protected void Session_End(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
protected void Application_End(Object sender, EventArgs e) |
|
{ |
|
|
|
} |
|
|
|
#region Web Form Designer generated code |
|
/// <summary> |
|
/// Required method for Designer support - do not modify |
|
/// the contents of this method with the code editor. |
|
/// </summary> |
|
private void InitializeComponent() |
|
{ |
|
|
|
} |
|
#endregion |
|
} |
|
} |
|
]]></File> |
|
<!--*************************************************************************--> |
|
<File name="Default.aspx" language="HTML"><![CDATA[<%@ Page |
|
Language = "C#" |
|
AutoEventWireup = "false" |
|
Inherits = "${StandardNamespace}.Default" |
|
ValidateRequest = "false" |
|
EnableSessionState = "false" |
|
%> |
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
<html xmls="http://www.w3.org/1999/xhtml"> |
|
|
|
<html> |
|
<head> |
|
<title>${ClassName}</title> |
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> |
|
<meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> |
|
|
|
<link href="${StandardNamespace}.css" type="text/css" rel="stylesheet"> |
|
|
|
</head> |
|
<body> |
|
<form id="Form1" method="post" runat="server"> |
|
<!-- Site Code goes here! --> |
|
<table> |
|
|
|
<tr> |
|
<td colspan="2"> |
|
Table |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<td> |
|
Name: |
|
</td> |
|
<td> |
|
<input id="_Input_Name" runat="server"> |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<td colspan="2"> |
|
<input id="_Button_No" type="submit" value="Oh No!" runat="server"> |
|
<input id="_Button_Ok" type="submit" value="Ok" runat="server"> |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<td colspan="2" align="center"> |
|
<a href="?" >Click Here</a> |
|
</td> |
|
</tr> |
|
|
|
</table> |
|
|
|
</form> |
|
</Body> |
|
</Html> |
|
]]></File> |
|
<!--*************************************************************************--> |
|
<File name="${StandardNamespace}.css" language="HTML"> |
|
<![CDATA[/*----------------------------------------------*/ |
|
BODY |
|
{ font-family: Verdana, Arial; |
|
font-weight: normal; |
|
font-size: 11px; |
|
color: Black; |
|
background-color: #F0F0F0; |
|
} |
|
/*----------------------------------------------*/ |
|
TABLE |
|
{ font-size: 11px; |
|
background-color: #000000; |
|
border-width: 1px; |
|
border-color: #000000; |
|
border-collapse: collapse; |
|
margin: 0; |
|
} |
|
/*----------------------------------------------*/ |
|
TD |
|
{ background-color: #FFFFFF; |
|
border-color: #FF0000; |
|
border-width: 0px; |
|
padding: 4; |
|
margin: 0; |
|
} |
|
/*----------------------------------------------*/ |
|
DIV |
|
{ width:120px; |
|
height:120px; |
|
border:solid 1px black; |
|
padding:8px; |
|
background-color:#F0F0FF; |
|
} |
|
/*----------------------------------------------*/ |
|
SELECT |
|
{ font-family: Verdana; |
|
font-weight: normal; |
|
font-size: 11px; |
|
color: #000000; |
|
background-color: #FFFFFF; |
|
} |
|
/*----------------------------------------------*/ |
|
INPUT |
|
{ font-family: Verdana; |
|
font-weight: normal; |
|
font-size: 11px; |
|
color: #000000; |
|
} |
|
/*----------------------------------------------*/ |
|
TEXTAREA |
|
{ font-family: Verdana; |
|
font-weight: normal; |
|
font-size: 11px; |
|
color: #000000; |
|
background-color: #FFFFFF; |
|
} |
|
/*----------------------------------------------*/ |
|
A |
|
{ FONT-WEIGHT: normal; |
|
COLOR: #004080; |
|
font-style: normal; |
|
text-decoration: none; |
|
} |
|
|
|
A:hover |
|
{ FONT-WEIGHT: bold; |
|
COLOR: #FF5357; |
|
} |
|
/*----------------------------------------------*/ |
|
]]></File> |
|
<!--*************************************************************************--> |
|
<File name="Web.config" language="XML"><![CDATA[<configuration> |
|
|
|
<system.web> |
|
|
|
<!-- DYNAMIC DEBUG COMPILATION |
|
Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to |
|
false will improve runtime performance of this application. |
|
Set compilation debug="true" to insert debugging symbols (.pdb information) |
|
into the compiled page. Because this creates a larger file that executes |
|
more slowly, you should set this value to true only when debugging and to |
|
false at all other times. For more information, refer to the documentation about |
|
debugging ASP.NET files. |
|
--> |
|
<compilation |
|
defaultLanguage="c#" |
|
debug="true" |
|
/> |
|
|
|
<!-- CUSTOM ERROR MESSAGES |
|
Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. |
|
Add <error> tags for each of the errors you want to handle. |
|
|
|
"On" Always display custom (friendly) messages. |
|
"Off" Always display detailed ASP.NET error information. |
|
"RemoteOnly" Display custom (friendly) messages only to users not running |
|
on the local Web server. This setting is recommended for security purposes, so |
|
that you do not display application detail information to remote clients. |
|
--> |
|
<customErrors mode="RemoteOnly" /> |
|
|
|
<!-- AUTHENTICATION |
|
This section sets the authentication policies of the application. Possible modes are "Windows", |
|
"Forms", "Passport" and "None" |
|
|
|
"None" No authentication is performed. |
|
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to |
|
its settings for the application. Anonymous access must be disabled in IIS. |
|
"Forms" You provide a custom form (Web page) for users to enter their credentials, and then |
|
you authenticate them in your application. A user credential token is stored in a cookie. |
|
"Passport" Authentication is performed via a centralized authentication service provided |
|
by Microsoft that offers a single logon and core profile services for member sites. |
|
--> |
|
<authentication mode="None" /> |
|
|
|
<!-- AUTHORIZATION |
|
This section sets the authorization policies of the application. You can allow or deny access |
|
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous |
|
(unauthenticated) users. |
|
--> |
|
|
|
<authorization> |
|
<allow users="*" /> <!-- Allow all users --> |
|
<!-- <allow users="[comma separated list of users]" |
|
roles="[comma separated list of roles]"/> |
|
<deny users="[comma separated list of users]" |
|
roles="[comma separated list of roles]"/> |
|
--> |
|
</authorization> |
|
|
|
<!-- APPLICATION-LEVEL TRACE LOGGING |
|
Application-level tracing enables trace log output for every page within an application. |
|
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the |
|
trace information will be displayed at the bottom of each page. Otherwise, you can view the |
|
application trace log by browsing the "trace.axd" page from your web application |
|
root. |
|
--> |
|
<trace |
|
enabled="false" |
|
requestLimit="10" |
|
pageOutput="false" |
|
traceMode="SortByTime" |
|
localOnly="true" |
|
/> |
|
|
|
<!-- SESSION STATE SETTINGS |
|
By default ASP.NET uses cookies to identify which requests belong to a particular session. |
|
If cookies are not available, a session can be tracked by adding a session identifier to the URL. |
|
To disable cookies, set sessionState cookieless="true". |
|
--> |
|
<sessionState |
|
mode="InProc" |
|
cookieless="true" |
|
timeout="20" |
|
/> |
|
|
|
<!-- GLOBALIZATION |
|
This section sets the globalization settings of the application. |
|
--> |
|
<globalization |
|
requestEncoding="utf-8" |
|
responseEncoding="utf-8" |
|
/> |
|
|
|
</system.web> |
|
|
|
<appSettings> |
|
|
|
<add key="SqlConnectionString" |
|
value="Server=localhost; Database=; Uid=root; Pwd=;" |
|
/> |
|
|
|
</appSettings> |
|
|
|
</configuration> |
|
|
|
]]></File> |
|
<!--*************************************************************************--> |
|
</Files> |
|
</Project> |
|
</Combine> |
|
</Template>
|
|
|