Predefined File Templates for ASP.NET (C#)
This topic lists all predefined file templates for ASP.NET (C#) in JetBrains Rider 2024.3. For more information about file templates, refer to Create files from templates.
Template | Details |
---|---|
| Web form without master page Scope ASP.NET Web Forms (C#) projects Body <%@ Page Language="C#" CodeBehind="$NAME$.aspx.cs" Inherits="$NAMESPACE$.$CLASS$" %>
<!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>$Title$</title>
</head>
<body>
<form id="$form1$" runat="server">
<div>
$END$
</div>
</form>
</body>
</html>
Parameters
|
| Web form with master page Scope ASP.NET Web Forms (C#) projects Body <%@ Page Title="$Title$" Language="C#" MasterPageFile="$MasterPage$" CodeBehind="$NAME$.aspx.cs" Inherits="$NAMESPACE$.$CLASS$" %>
$CONTENT$ Parameters
|
| Master page without base master page Scope ASP.NET Web Forms (C#) projects Body <%@ Master Language="C#" CodeBehind="$NAME$.aspx.cs" Inherits="$NAMESPACE$.$CLASS$" %>
<!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></title>
<asp:ContentPlaceHolder id="$head$" runat="server">
$END$</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder id="$ContentPlaceHolder1$" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
Parameters
|
| Master page with base master page Scope ASP.NET Web Forms (C#) projects Body <%@ Master Language="C#" MasterPageFile="$MasterPage$" CodeBehind="$NAME$.aspx.cs" Inherits="$NAMESPACE$.$CLASS$" %>
$CONTENT$ Parameters
|
| Web control Scope ASP.NET Web Forms (C#) projects Body <%@ Control Language="C#" CodeBehind="$NAME$.ascx.cs" Inherits="$NAMESPACE$.$CLASS$" %>
$END$
Parameters
|
| MVC View Page with master page Scope ASP.NET (C#) projects Body <%@ Page Title="$Title$" Language="C#" Inherits="System.Web.Mvc.ViewPage<$ModelType$>" MasterPageFile="$MasterPage$" %>
$CONTENT$
Parameters
|
| MVC View Page without master page Scope ASP.NET (C#) projects Body <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<$ModelType$>" %>
<!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>$Title$</title>
</head>
<body>
$END$
</body>
</html>
Parameters
|
| MVC View UserControl Scope ASP.NET (C#) projects Body <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<$ModelType$>" %>
$END$ Parameters
|