ReSharper 2024.3 Help

Predefined File Templates for ASP.NET (VB)

This topic lists all predefined file templates for ASP.NET (VB) in ReSharper 2024.3. For more information about file templates, refer to Create files from templates.

Template

Details

Web form without master page

Web form without master page

Scope ASP.NET (VB) projects

Body

<%@ Page Language="VB" CodeBehind="$NAME$.aspx.vb" 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$</title> </head> <body> <form id="$form1$" runat="server"> <div> $END$ </div> </form> </body> </html>

Parameters

  • Title - no macro

  • form1 - When executed in a variable declaration (where variable name should stand), suggests a name for the variable

  • CLASS - Evaluates to the primary file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAME - Evaluates to the current file name without extension

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Web form with master page

Web form with master page

Scope ASP.NET (VB) projects

Body

<%@ Page Title="$Title$" Language="VB" MasterPageFile="$MasterPage$" CodeBehind="$NAME$.aspx.vb" Inherits="$NAMESPACE$.$CLASS$" %> $CONTENT$

Parameters

  • Title - no macro

  • MasterPage - Shows smart code completion list at the point where the variable is evaluated

  • CONTENT - Generates content for masterpage content placeholders at the point where the variable is evaluated

  • CLASS - Evaluates to the primary file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAME - Evaluates to the current file name without extension

  • NAMESPACE - Evaluates to the default namespace for the current file

Master page without base master page

Master page without base master page

Scope ASP.NET (VB) projects

Body

<%@ Master Language="VB" CodeBehind="$NAME$.aspx.vb" 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

  • head - When executed in a variable declaration (where variable name should stand), suggests a name for the variable

  • ContentPlaceHolder1 - When executed in a variable declaration (where variable name should stand), suggests a name for the variable

  • CLASS - Evaluates to the primary file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAME - Evaluates to the current file name without extension

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Master page with base master page

Master page with base master page

Scope ASP.NET (VB) projects

Body

<%@ Master Language="VB" MasterPageFile="$MasterPage$" CodeBehind="$NAME$.aspx.vb" Inherits="$NAMESPACE$.$CLASS$" %> $CONTENT$

Parameters

  • MasterPage - Shows smart code completion list at the point where the variable is evaluated

  • CONTENT - Generates content for masterpage content placeholders at the point where the variable is evaluated

  • CLASS - Evaluates to the primary file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAME - Evaluates to the current file name without extension

  • NAMESPACE - Evaluates to the default namespace for the current file

Web control

Web control

Scope ASP.NET (VB) projects

Body

<%@ Control Language="VB" CodeBehind="$NAME$.ascx.vb" Inherits="$NAMESPACE$.$CLASS$" %> $END$

Parameters

  • CLASS - Evaluates to the primary file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAME - Evaluates to the current file name without extension

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

MVC View Page with master page

MVC View Page with master page

Scope ASP.NET (VB) projects

Body

<%@ Page Title="$Title$" Language="VB" Inherits="System.Web.Mvc.ViewPage(Of $ModelType$)" MasterPageFile="$MasterPage$" %> $CONTENT$

Parameters

  • Title - no macro

  • ModelType - Guesses the type expected at this point

  • MasterPage - Shows smart code completion list at the point where the variable is evaluated

  • CONTENT - Generates content for masterpage content placeholders at the point where the variable is evaluated

MVC View Page without master page

MVC View Page without master page

Scope ASP.NET (VB) projects

Body

<%@ Page Language="VB" Inherits="System.Web.Mvc.ViewPage(Of $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

  • ModelType - Guesses the type expected at this point

  • Title - no macro

  • END - The caret position after the template is applied.

MVC View UserControl

MVC View UserControl

Scope ASP.NET (VB) projects

Body

<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl(Of $ModelType$)" %> $END$

Parameters

  • ModelType - Guesses the type expected at this point

  • END - The caret position after the template is applied.

Last modified: 06 November 2024