ReSharper Web Help

ReSharper | Live Templates | Live Templates | Predefined Templates | ASP.NET

ASP.NET

ReSharper provides several live templates for ASP.NET, which are described below.

Template name Description
<a

Go to top

Purpose
Inserts HTML hyperlink.

<a href="$LINK$">$TEXT$</a>

Before expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__a__before.png
After expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__a__after.png

Parameters

  • LINK - hyperlink.
  • TEXT - text caption.

<asp:HyperLink

Go to top

Purpose
Inserts ASP.NET hyperlink control.

<asp:HyperLink runat="server" NavigateUrl="$LINK$" Text="$TEXT$" />

Before expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__aspHyperLink__before.png
After expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__aspHyperLink__after.png

Parameters

  • LINK - hyperlink.
  • TEXT - text caption.

<script

Go to top

Purpose
Inserts script block which contains some code.

<script type="$attributeValue$">$END$</script>

Before expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__script__before.png
After expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__script__after.png

Parameters

  • attributeValue - value of attribute.
  • END - position of the caret after applying the template.

a

Go to top

Purpose
Displays the list of attributes which are available in the current tag and inserts chosen one.

$ATTR$="$END$"

Before expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__attr__before.png
After expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__attr__after.png

Parameters

  • ATTR - name of the attribute to be inserted.
  • END - position of the caret after applying the template.

t

Go to top

Purpose
Displays the list of tags which are available at current place and inserts chosen one.

<$TAG$$RUNATSERVER$>$END$</$TAG$>

Before expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__t__before.png
After expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__t__after.png

Parameters

  • TAG - name of tag to be inserted.
  • RUNATSERVER - attribute runat that gets inserted with value server if server-side tag selected.
  • END - position of the caret after applying the template.

tc

Go to top

Purpose
Displays the list of tags which are available at current place and inserts single closed tag.

<$TAG$$RUNATSERVER$ $END$/>

Before expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__tc__before.png
After expansion
Reference__Options__Templates__Live_Templates__Predefined__ASP.NET__tc__after.png

Parameters

  • TAG - name of tag to be inserted.
  • RUNATSERVER - attribute runat that gets inserted with value server if server-side tag selected.
  • END - position of the caret after applying the template.

See Also

Reference