Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1262 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
22 changed files with 1137 additions and 192 deletions
@ -0,0 +1,100 @@
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0"?> |
||||
<Template author="Tom Schroeter" version="1.0"> |
||||
|
||||
<Config |
||||
name = "ASP.NET Web Control" |
||||
icon = "C#.File.NewClass" |
||||
category = "C#" |
||||
subcategory = "ASP.NET" |
||||
defaultname = "WebControl" |
||||
language = "C#" |
||||
/> |
||||
|
||||
<Description>Custom Web Control. Enter the name of a new control.</Description> |
||||
<!-- |
||||
Special new file templates: |
||||
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
||||
${FullName} -> Full generated path name |
||||
${FileName} -> File name with extension |
||||
${FileNameWithoutExtension} -> File name without extension |
||||
${Extension} -> Extension in the form ".cs" |
||||
${Path} -> Full path of the file |
||||
--> |
||||
<Files> |
||||
<File name="${Path}\Source\${FileNameWithoutExtension}.cs" language="C#"><![CDATA[${StandardHeader.C#} |
||||
|
||||
using System; |
||||
using System.Web; |
||||
using System.Web.SessionState; |
||||
using System.Web.UI; |
||||
using System.Web.UI.WebControls; |
||||
using System.Web.UI.HtmlControls; |
||||
|
||||
namespace ${StandardNamespace} |
||||
{ |
||||
//************************************************************************** |
||||
#region Class ${ClassName} |
||||
/// <summary> |
||||
/// Description of ${ClassName} |
||||
/// </summary> |
||||
|
||||
public class ${ClassName} : Control |
||||
{ |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Data |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Constructor |
||||
|
||||
public ${ClassName}() |
||||
{ |
||||
Init += new EventHandler( OnInit ); |
||||
Load += new EventHandler( OnLoad ); |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region OnInit |
||||
|
||||
private void OnInit(object sender, EventArgs e) |
||||
{ |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region OnLoad |
||||
|
||||
private void OnLoad(object sender, EventArgs e) |
||||
{ |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Properties |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Render |
||||
|
||||
override |
||||
protected void Render(HtmlTextWriter Writer) |
||||
{ |
||||
Writer.Write( "${ClassName} Control" ); |
||||
} |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region More... |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region More... |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
} |
||||
#endregion |
||||
//************************************************************************** |
||||
} |
||||
]]></File> |
||||
|
||||
</Files> |
||||
|
||||
<AdditionalOptions/> |
||||
</Template> |
||||
@ -0,0 +1,194 @@
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0"?> |
||||
<Template author="Tom Schroeter" version="1.0"> |
||||
|
||||
<Config |
||||
name = "ASP.NET Web Form" |
||||
icon = "C#.File.NewClass" |
||||
category = "C#" |
||||
subcategory = "ASP.NET" |
||||
defaultname = "WebForm${Number}.aspx" |
||||
language = "C#" |
||||
/> |
||||
|
||||
<Description>Component Frame for ASPX Code Behind. Enter the name of a new page.</Description> |
||||
<!-- |
||||
Special new file templates: |
||||
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
||||
${FullName} -> Full generated path name |
||||
${FileName} -> File name with extension |
||||
${FileNameWithoutExtension} -> File name without extension |
||||
${Extension} -> Extension in the form ".cs" |
||||
${Path} -> Full path of the file |
||||
--> |
||||
<Files> |
||||
<File name="${Path}\Source\${FileNameWithoutExtension}.cs" language="C#"><![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 ${ClassName} |
||||
/// </summary> |
||||
public class ${ClassName} : 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, System.EventArgs e) |
||||
{ |
||||
} |
||||
//---------------------------------------------------------------------- |
||||
protected void PageExit(object sender, System.EventArgs e) |
||||
{ |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Page Load |
||||
private void Page_Load(object sender, System.EventArgs e) |
||||
{ |
||||
Response.Write(@"Hello #Develop<br>"); |
||||
//------------------------------------------------------------------ |
||||
if(IsPostBack) |
||||
{ |
||||
} |
||||
//------------------------------------------------------------------ |
||||
} |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Click_Button_OK |
||||
|
||||
//---------------------------------------------------------------------- |
||||
protected void Click_Button_Ok(object sender, System.EventArgs e) |
||||
{ |
||||
Response.Write( _Button_Ok.Value + " was cklicked!<br>"); |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Change_Input_Name |
||||
|
||||
//---------------------------------------------------------------------- |
||||
protected void Changed_Input_Name(object sender, System.EventArgs e) |
||||
{ |
||||
Response.Write( _Input_Name.Value + " has changed!<br>"); |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Add more events here... |
||||
|
||||
#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="${FullName}" language="HTML"><![CDATA[<%@ Page |
||||
language="c#" |
||||
Codebehind="${FileNameWithoutExtension}.cs" |
||||
AutoEventWireup="false" |
||||
Inherits="${StandardNamespace}.${ClassName}" |
||||
validateRequest="false" |
||||
EnableSessionState="false" |
||||
debug="true" |
||||
trace="false" |
||||
%> |
||||
|
||||
<!-- |
||||
<--%@ Register TagPrefix="???" Namespace="${StandardNamespace}" Assembly="${StandardNamespace}" %> |
||||
--> |
||||
|
||||
<!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="Form_${ClassName}" method="post" runat="server"> |
||||
|
||||
<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> |
||||
|
||||
</Files> |
||||
|
||||
<AdditionalOptions/> |
||||
</Template> |
||||
@ -0,0 +1,82 @@
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0"?> |
||||
<Template author="Tom Schroeter" version="1.0"> |
||||
|
||||
<Config |
||||
name = "ASP.NET Web Service" |
||||
icon = "C#.File.NewClass" |
||||
category = "C#" |
||||
subcategory = "ASP.NET" |
||||
defaultname = "WebService.asmx" |
||||
language = "C#" |
||||
/> |
||||
|
||||
<Description>Component Frame for ASMX Web Service. Enter the name of a new service.</Description> |
||||
<!-- |
||||
Special new file templates: |
||||
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
||||
${FullName} -> Full generated path name |
||||
${FileName} -> File name with extension |
||||
${FileNameWithoutExtension} -> File name without extension |
||||
${Extension} -> Extension in the form ".cs" |
||||
${Path} -> Full path of the file |
||||
--> |
||||
<Files> |
||||
<File name="${Path}\Source\${FileNameWithoutExtension}.cs" language="C#"><![CDATA[${StandardHeader.C#} |
||||
|
||||
using System; |
||||
using System.Web.Services; |
||||
|
||||
namespace ${StandardNamespace} |
||||
{ |
||||
/// <summary> |
||||
/// Description of ${ClassName} |
||||
/// </summary> |
||||
[WebService |
||||
( Name = "${ClassName}", |
||||
Description = "${ClassName}", |
||||
Namespace = "http://www.${ClassName}.example" |
||||
) |
||||
] |
||||
public class ${ClassName} : WebService |
||||
{ |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Data |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Constructor |
||||
|
||||
public ${ClassName}() |
||||
{ |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region Status |
||||
|
||||
[WebMethod] |
||||
public string Status() |
||||
{ |
||||
string s = string.Format("Time: {0}", DateTime.Now); |
||||
return s; |
||||
} |
||||
|
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region More... |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
#region More... |
||||
#endregion |
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
||||
} |
||||
} |
||||
]]></File> |
||||
<File name="${FullName}"><![CDATA[ |
||||
<%@ WebService Class="${StandardNamespace}.${ClassName}" Language="C#" Debug="true" %> |
||||
|
||||
]]> </File> |
||||
|
||||
</Files> |
||||
|
||||
<AdditionalOptions/> |
||||
</Template> |
||||
@ -0,0 +1,512 @@
@@ -0,0 +1,512 @@
|
||||
<?xml version="1.0"?> |
||||
<Template originator = "Tom Schroeter" |
||||
created = "24/03/2006" |
||||
lastModified = "24/03/2006"> |
||||
|
||||
<!-- Template Header --> |
||||
<TemplateConfiguration> |
||||
<Name>ASP.net webpage project</Name> |
||||
<Category>C#</Category> |
||||
<Subcategory>ASP.NET</Subcategory> |
||||
<Icon>C#.Project.Form</Icon> |
||||
<LanguageName>C#</LanguageName> |
||||
<Description>ASP.net web application</Description> |
||||
</TemplateConfiguration> |
||||
|
||||
<!-- Actions --> |
||||
<Actions> |
||||
<Open filename = ".\Source\Main.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=".\Source\Main.cs"><![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 Main : 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=".\Source\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="${ProjectName}.Global" |
||||
%> |
||||
]]></File> |
||||
<!--*************************************************************************--> |
||||
<File name=".\Source\Global.cs"> |
||||
<![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="Main.aspx" language="HTML"><![CDATA[<%@ Page |
||||
language="c#" |
||||
Codebehind="Main.cs" |
||||
AutoEventWireup="false" |
||||
Inherits="${ProjectName}.Main" |
||||
validateRequest="false" |
||||
EnableSessionState="false" |
||||
debug="true" |
||||
trace="false" |
||||
%> |
||||
|
||||
<!-- |
||||
<--%@ Register TagPrefix="???" Namespace="${StandardNamespace}" Assembly="${StandardNamespace}" %> |
||||
--> |
||||
|
||||
<!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>Main</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="${ProjectName}.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="${ProjectName}.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> |
||||
@ -1,49 +1,17 @@
@@ -1,49 +1,17 @@
|
||||
<?xml version="1.0"?> |
||||
<SyntaxDefinition name = "ASP3/XHTML" extensions = ".asp"> |
||||
|
||||
<Environment> |
||||
<Default color = "SystemColors.WindowText" bgcolor = "SystemColors.Window"/> |
||||
<Selection color = "SystemColors.HighlightText" bgcolor = "SystemColors.Highlight"/> |
||||
<!-- <Selection bgcolor = "LightBlue"/> --> |
||||
<VRuler color = "SystemColors.ControlLight"/> |
||||
<InvalidLines color = "Red"/> |
||||
<CaretMarker color = "Yellow"/> |
||||
|
||||
<LineNumbers color = "SystemColors.ControlDark" bgcolor = "SystemColors.Window"/> |
||||
|
||||
<FoldLine color = "#808080" bgcolor="Black"/> |
||||
<FoldMarker color = "#808080" bgcolor="White"/> |
||||
<SelectedFoldLine color = "Black" bgcolor="Black"/> |
||||
|
||||
<EOLMarkers color = "#E0E0E5"/> |
||||
<SpaceMarkers color = "#E0E0E5"/> |
||||
<TabMarkers color = "#E0E0E5"/> |
||||
</Environment> |
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "Black"/> |
||||
|
||||
<SyntaxDefinition name = "ASP/XHTML" extensions = ".asp;.aspx;.asax;.asmx" extends = "HTML"> |
||||
<RuleSets> |
||||
<RuleSet ignorecase = "false"> |
||||
<Delimiters><> </Delimiters> |
||||
<Span name = "ASPCode" rule = "ASP" bold = "false" italic = "false" color = "Green" bgcolor = "#E7E2D3" stopateol = "false"> |
||||
<Begin><%</Begin> |
||||
<End>%></End> |
||||
</Span> |
||||
|
||||
<Span name= "HTMLCode" rule = "HTML" bold = "false" italic = "false" color = "Blue" stopateol = "false"> |
||||
<Begin><</Begin> |
||||
<End>></End> |
||||
</Span> |
||||
|
||||
</RuleSet> |
||||
|
||||
<RuleSet name="ASP" ignorecase = "false"> |
||||
<Span name = "COMMENT" bold = "false" italic = "true" color = "SlateGray" stopateol = "true"> |
||||
<Begin>'</Begin> |
||||
</Span> |
||||
</RuleSet> |
||||
<RuleSet ignorecase = "true" noescapesequences="true"> |
||||
<Span name = "ASPCode" rule = "ASP" bold = "false" italic = "false" color = "Black" bgcolor = "#F7F2E3" stopateol = "false"> |
||||
<Begin color="Black" bgcolor="Yellow"><%</Begin> |
||||
<End color="Black" bgcolor="Yellow">%></End> |
||||
</Span> |
||||
</RuleSet> |
||||
|
||||
<RuleSet name="HTML" ignorecase = "false" reference="HTML"> |
||||
<RuleSet name="ASP" ignorecase = "false"> |
||||
<Span name = "COMMENT" bold = "false" italic = "false" color = "Green" bgcolor = "#F7F2E3" stopateol = "true"> |
||||
<Begin>//</Begin> |
||||
</Span> |
||||
</RuleSet> |
||||
</RuleSets> |
||||
</SyntaxDefinition> |
||||
|
||||
Loading…
Reference in new issue