Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. indent for line

indent for line

Scheduled Pinned Locked Moved ASP.NET
databasequestion
7 Posts 3 Posters 0 Views 1 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.
  • N Offline
    N Offline
    niki_nilu
    wrote on last edited by
    #1

    hello in my project i have long query and i want to breck this query line. into more than one line. so how can i use indent.

    Gayatri

    P N 2 Replies Last reply
    0
    • N niki_nilu

      hello in my project i have long query and i want to breck this query line. into more than one line. so how can i use indent.

      Gayatri

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Use the _ character ( if you are using VB ). You might want to consider using stored procedures instead.

      "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      N 1 Reply Last reply
      0
      • P Paul Conrad

        Use the _ character ( if you are using VB ). You might want to consider using stored procedures instead.

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        N Offline
        N Offline
        niki_nilu
        wrote on last edited by
        #3

        thanks for reply. sir, i am using asp.net 2.0 with c#. so i want syntax for indent. actually i have long sql query, i want to breck it in multiple line so i want connector for line or so iwant indent for line. pls help me.

        Gayatri

        P 1 Reply Last reply
        0
        • N niki_nilu

          thanks for reply. sir, i am using asp.net 2.0 with c#. so i want syntax for indent. actually i have long sql query, i want to breck it in multiple line so i want connector for line or so iwant indent for line. pls help me.

          Gayatri

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          In C#, you can end a line with + after the quotation. You must have the next line begin with quotation to continue the string.

          "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          N 1 Reply Last reply
          0
          • P Paul Conrad

            In C#, you can end a line with + after the quotation. You must have the next line begin with quotation to continue the string.

            "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            N Offline
            N Offline
            niki_nilu
            wrote on last edited by
            #5

            Thanku very much really its helpful for me. thanks gayatri

            Gayatri

            P 1 Reply Last reply
            0
            • N niki_nilu

              Thanku very much really its helpful for me. thanks gayatri

              Gayatri

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              No problem :)

              "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

              1 Reply Last reply
              0
              • N niki_nilu

                hello in my project i have long query and i want to breck this query line. into more than one line. so how can i use indent.

                Gayatri

                N Offline
                N Offline
                neerubee
                wrote on last edited by
                #7

                Use Concatenation symbols like + in C# and & in vb.net

                Thanks & Regards Niranjan

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups