Skip to content
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
DiscussPlaces
DiscussPlaces
Destinations Popular Recent City guides Chat
Log in Join free New topic
  1. Discussions around everything
  2. Categories
  3. United States
  4. How do you comment out code in ASPX?

How do you comment out code in ASPX?

Scheduled Pinned Locked Moved United States
commentcodelinecomment functionrazor comment
2 Posts 3 Posters 1.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • purplesnake135P
    purplesnake135P
    purplesnake135
    Discussion Fanatics
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S
      S
      smalllion207
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      New here?

      DiscussPlaces is where people swap honest notes about living in, visiting and studying in places around the world.

      Join free

      Related topics

      • What is the ICD 10 code for pacemaker?
        lazycat857L
        lazycat857
        0
        2
        950

      • What is the ICD 10 code for CPAP?
        silverswan809S
        silverswan809
        0
        2
        1.0k

      • What does a circle with a line in it mean?
        yellowkoala130Y
        yellowkoala130
        0
        2
        898

      • What is the CPT code for silver nitrate?
        sadwolf623S
        sadwolf623
        0
        2
        1.1k

      • What is the postal code of Jordan?
        S
        sadswan637
        1
        2
        808

      Trending this week

      Tags

      commentcodelinecomment functionrazor comment

      Whether the information provided was useful?

      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?

      DiscussPlaces

      Honest conversations about places: living there, visiting, studying and eating well.

      Explore

      Countries and cities Popular topics Recent topics Tags

      Guides

      City guides Geography and facts World flags Ask a question

      Community

      Live chat Members Join free

      © DiscussPlaces AboutContactPrivacyTermsPhotos: Manarola by Timothy A. Gonsalves (CC BY-SA 4.0) and Lisbon by Dale Cruse (CC BY 4.0), via Wikimedia Commons.

      Live chat
      • Sound
      • Notification
      • Hide
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0