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. string format

string format

Scheduled Pinned Locked Moved ASP.NET
question
7 Posts 4 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.
  • P Offline
    P Offline
    ptvce
    wrote on last edited by
    #1

    i want put string in string means i my text has "" in it how can put in between ""? "<div id="divPrint""

    E V A 3 Replies Last reply
    0
    • P ptvce

      i want put string in string means i my text has "" in it how can put in between ""? "<div id="divPrint""

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Can you explian your problem a bit more? Do you mean you want to put a string value in the div id?

      P 1 Reply Last reply
      0
      • P ptvce

        i want put string in string means i my text has "" in it how can put in between ""? "<div id="divPrint""

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        You ought to escape the nested string, according to the particular language's escape sequences.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        1 Reply Last reply
        0
        • E eyeseetee

          Can you explian your problem a bit more? Do you mean you want to put a string value in the div id?

          P Offline
          P Offline
          ptvce
          wrote on last edited by
          #4

          no thats easy but i forgot it. i want do this string a="hello "martin""; i want martin be in ""

          E 1 Reply Last reply
          0
          • P ptvce

            no thats easy but i forgot it. i want do this string a="hello "martin""; i want martin be in ""

            E Offline
            E Offline
            eyeseetee
            wrote on last edited by
            #5

            Ah, thats a much better explanation of what you want rather then that mish mash you wrote in your first post try this stringname = "Title:" + "''Name''"; its not quite what you want, but close

            E 1 Reply Last reply
            0
            • E eyeseetee

              Ah, thats a much better explanation of what you want rather then that mish mash you wrote in your first post try this stringname = "Title:" + "''Name''"; its not quite what you want, but close

              E Offline
              E Offline
              eyeseetee
              wrote on last edited by
              #6

              sorry try this: string name = @""" word """; use @ then three "

              1 Reply Last reply
              0
              • P ptvce

                i want put string in string means i my text has "" in it how can put in between ""? "<div id="divPrint""

                A Offline
                A Offline
                Ashish Sehajpal
                wrote on last edited by
                #7

                use ControlChars.quote function to put quotes in string.. e.g. strJavaScript="<div id=" + Controlchars.quote() + " divid" + Controlchars.quote() +" />"; cheers !

                Ashish Sehajpal

                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