Add the following code at the top of your .aspx page
'<'%@OutputCache Duration="10" VaryByParam="None" %>
Thursday, September 11, 2008
Turn On Visual Studio 2005 Line Numbering
To view the options dialog box, select Tools, Options from the menus.
Show All Settings Mode:
You will see only Environment, Text Editor and Debugging within the tree structure
Expand the Text Editor branch of the tree. Here you can see a list of all of the languages for which settings may be modified. We will enable line numbering for C# code editing. Expand the C# node of the tree and select the General section to reveal the settings. To enable source code line numbering, tick the appropriate checkbox. Click OK to accept the setting and the line numbers will appear.
Reference:
http://www.blackwasp.co.uk/TurnOnLineNumbering.aspx
Show All Settings Mode:
You will see only Environment, Text Editor and Debugging within the tree structure
Expand the Text Editor branch of the tree. Here you can see a list of all of the languages for which settings may be modified. We will enable line numbering for C# code editing. Expand the C# node of the tree and select the General section to reveal the settings. To enable source code line numbering, tick the appropriate checkbox. Click OK to accept the setting and the line numbers will appear.
Reference:
http://www.blackwasp.co.uk/TurnOnLineNumbering.aspx
Subscribe to:
Posts (Atom)