Tip/Trick: Using Server Side Comments with ASP.NET 2.0

Posted by: ScottGus Blog, on 09 Jul 2006 | View original | Bookmarked: 0 time(s)

  Problem   You are coding away on an ASP.NET page, and are trying to isolate a problem within the page.  You have some existing html/controls/markup/in-line code that is being used on the page, and you want to temporarily comment it out while you fix the problem.   Solution   ASP.NET supports a little known feature called server-side comments that you can use to completely disable code/controls/html in a page.  Server-side comments in ASP.NET are delimited using a <%--...

Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 993 | Hits: 24

Similar Posts

  • Adding users to a TFS project when youre not on the domain more
  • March's Toolbox Column Now Online more
  • Script to Inventory Print Servers more
  • Client Cache Headers more
  • West Wind Ajax Toolkit updated more
  • AJAX UpdatePanel - "Statefull" Control Update Trigger more
  • Spring ASP.NET Connections Sessions more
  • MOSS 2007: Index and Web-Front-End Server Topology more
  • A New AJAX Approach - Client-side Controls Invoking Web Services more
  • [Tip] Use RUNAS to set your Windows Auth domain for database connections more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD