• Discussion Fanatics

    You can either select the text to be commented out, or you can position your text inside a chunk to be commented out; for example, put your cursor inside the opening tag of a GridView, press Ctrl-KC, and the whole thing is commented out. FYI | ctrl K , C is the comment shortcut in Visual Studio.


  • To comment in the code block of Razor view, we use the same syntax as we use in C#. Like for single line // and for multiline /* and */. To comment, HTML along with other code, we need to use razor comment block that starts with @* and ends with *@. This is @fileName logo.

    Beside above, how do you comment a line in ASP using VBScript? Unfortunately, you cannot block comment VBScript like you can in other languages. You can comment out each line individually. Just put a single quotation mark at the start of the line you want to out and do then do the same for each subsequent line.

    Also question is, how do you comment out in HTML?

    Steps

    1. Insert a single-line comment. Comments are designated by the tags <! -- and --> .
    2. Create a multiline comment.
    3. Use the comment function to quickly disable code.
    4. Use the comment function to hide scripts on unsupported browsers.

    What is a code comment?

    In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program. They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters.


  • This post is deleted!

What is discussplaces?

DiscussPlaces is a place to make new friends and share your passions and interests. Quench your thirst for knowledge, discuss places with other aficionados, and swap recommendations. Are you an aspiring foodie who dreams of living in New York? Or perhaps you are looking for the best chicken wings in Cincinnati? Then this is the place for you! Any one can join in with a passion or interest – whether it be talking about their favorite restaurant in Barcelona or raving about their latest trip to Italy. Join us!



This page shows discussions around "How do you comment out code in ASPX?"

Tags

comment code line comment function razor comment

Add a quick comment about your valuable suggestion to help us improve.




We are glad to make you happy, kindly share this feedback with your friends and family to know as well



Where is it?