ReSharper Web Help

ReSharper | Templates Explorer | File Templates | ASP.NET (C#)

ASP.NET (C#)

Template name Description
Master page with base master page

Go to top

Purpose
Creates a new ASP.NET child master page.

<%@ Master Language="C#" MasterPageFile="$MASTER_PAGE$" %>

$CONTENT$
$END$

Parameters

  • MASTER_PAGE - name of the .master file that acts as a master page for a child master page.
  • CONTENT - contains content controls that are mapped to content placeholders on the parent master page.
  • END - caret position after template insertion.

Master page without base master page

Go to top

Purpose
Creates a new ASP.NET master page.

<%@ Master Language="C#" %>

<!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>
    <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

  • head - identifier of the ContentPlaceHolder control.
  • END - caret position after template insertion.
  • ContentPlaceHolder1 - identifier of the ContentPlaceHolder control.

Web control

Go to top

Purpose
Creates ASP.NET user control.

<%@ Control Language="C#" ClassName="$CLASS_NAME$" %>

<script runat="server">
$END$
</script>

Parameters

  • CLASS_NAME - class name for the control (default value is the control`s file name).
  • END - caret position after template insertion.

Web form with master page

Go to top

Purpose
Creates ASP.NET Web page.

<%@ Page Title="" Language="C#" MasterPageFile="$MASTER_FILE$" %>

$CONTENT$
$END$

Parameters

  • MASTER_FILE - name of the .master file that acts as a master page for a content page.
  • CONTENT - contains content controls that are mapped to content placeholders on the parent master page.
  • END - caret position after template insertion.

Web form without master page

Go to top

Purpose
Creates ASP.NET Web page without master page.

<%@ Page Language="C#" %>

<!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>
</head>
<body>
    <form id="$form1$" runat="server">
    <div>
    $END$
    </div>
    </form>
</body>
</html>

Parameters

  • form1 - form identifier.
  • END - caret position after template insertion.