Comments in ASP.NET
-
Hi, In aspx.cs file: We can put the comments using // or /* */ In aspx file: <!-- --> used for client side code, <%-- --%> for server side code. Is this the way only? Any best practise from performance perspective i.e. which type of comment to be used to put less load on server?
-
Hi, In aspx.cs file: We can put the comments using // or /* */ In aspx file: <!-- --> used for client side code, <%-- --%> for server side code. Is this the way only? Any best practise from performance perspective i.e. which type of comment to be used to put less load on server?
All your comments are stripped exactly the same. The big issue is, comments in your ASPX get sent to the client, too, which is a bandwidth issue. There's no 'high performance comments'.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.