C# : Tutorial of Asp.net with c# and example

Example and code about windows application, web application, SQL, C#, WPF etc which is helpful to developer and programer.

Search This Blog

C# : comment in asp.net or c sharp and use of it and short cut key for do comment

♠ Posted by uvesh in , at Saturday, August 09, 2014

How to comment code in asp.net?


Comment code in asp.net page as follow:


<%write comment here%>

Shortcut key for do comment in aspx page in asp.net as follow:


CTRL + K, CTRL + C For Make comment selected text.

CTRL + K,CTRL + U For Remove  comment of selected text.

Do comment in aspx.cs(code behind) page in asp.net as follow:

//comment  can write here

advantage of comment or use of comment as follow:


  • Removed at compile-time
  • Doesn't increase size of markup
  • You can even optimize with them







Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


http://aspdotnethelpmaster.blogspot.in/

0 comments:

Post a Comment