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. Cut Space

Cut Space

Scheduled Pinned Locked Moved ASP.NET
help
19 Posts 8 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.
  • S Offline
    S Offline
    Socheat Net
    wrote on last edited by
    #1

    I have one string "Hello World" I want cut space to like that "Hello World", please help me Thanks

    ................

    C S 2 Replies Last reply
    0
    • S Socheat Net

      I have one string "Hello World" I want cut space to like that "Hello World", please help me Thanks

      ................

      C Offline
      C Offline
      Chetan Ranpariya
      wrote on last edited by
      #2

      Not able to get your problemm:(

      Thanks and Regards, Chetan Ranpariya

      S K 2 Replies Last reply
      0
      • S Socheat Net

        I have one string "Hello World" I want cut space to like that "Hello World", please help me Thanks

        ................

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        Clearly explain what is your problem. There is no difference in your mentioned word of "Hello World".

        Regards, Satips.

        S 1 Reply Last reply
        0
        • C Chetan Ranpariya

          Not able to get your problemm:(

          Thanks and Regards, Chetan Ranpariya

          S Offline
          S Offline
          Socheat Net
          wrote on last edited by
          #4

          You it contain many space with it u can view it, it like that "Hello World"

          ................

          B 1 Reply Last reply
          0
          • S Sathesh Sakthivel

            Clearly explain what is your problem. There is no difference in your mentioned word of "Hello World".

            Regards, Satips.

            S Offline
            S Offline
            Socheat Net
            wrote on last edited by
            #5

            The string like that "Hello           World", please help me, I want it become like this "Hello World" Thanks Socheat

            ................

            G S 2 Replies Last reply
            0
            • S Socheat Net

              The string like that "Hello           World", please help me, I want it become like this "Hello World" Thanks Socheat

              ................

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #6

              Use the Regex.Replace method to replace multiple spaces (pattern = " {2,}") with a single space.

              --- single minded; short sighted; long gone;

              S K 2 Replies Last reply
              0
              • G Guffa

                Use the Regex.Replace method to replace multiple spaces (pattern = " {2,}") with a single space.

                --- single minded; short sighted; long gone;

                S Offline
                S Offline
                Socheat Net
                wrote on last edited by
                #7

                But i currently using ASP, show how can i? Regard Socheat

                ................

                G 1 Reply Last reply
                0
                • S Socheat Net

                  The string like that "Hello           World", please help me, I want it become like this "Hello World" Thanks Socheat

                  ................

                  S Offline
                  S Offline
                  Sandeep Akhare
                  wrote on last edited by
                  #8

                  Try this string str = "Hello World"; char[] separator ={ ' ' }; string[] result = str.Split(separator, StringSplitOptions.RemoveEmptyEntries);

                  Thanks and Regards Sandeep If you want something you never had, do something you have never done!

                  S 1 Reply Last reply
                  0
                  • S Sandeep Akhare

                    Try this string str = "Hello World"; char[] separator ={ ' ' }; string[] result = str.Split(separator, StringSplitOptions.RemoveEmptyEntries);

                    Thanks and Regards Sandeep If you want something you never had, do something you have never done!

                    S Offline
                    S Offline
                    Socheat Net
                    wrote on last edited by
                    #9

                    I am very sorry I don't understand, please give as ASP code Regard Socheat

                    ................

                    C 1 Reply Last reply
                    0
                    • S Socheat Net

                      But i currently using ASP, show how can i? Regard Socheat

                      ................

                      G Offline
                      G Offline
                      Guffa
                      wrote on last edited by
                      #10

                      As you asked in the ASP.NET forum, I assumed that you were using ASP.NET. In ASP you can use the RegExp object. As you haven't said what language you are using, I assume that you are using VBScript. Example:

                      With New RegExp
                      .Pattern = " {2,}"
                      .Global = True
                      text = .Replace(text, " ")
                      End With

                      --- single minded; short sighted; long gone;

                      S 1 Reply Last reply
                      0
                      • G Guffa

                        As you asked in the ASP.NET forum, I assumed that you were using ASP.NET. In ASP you can use the RegExp object. As you haven't said what language you are using, I assume that you are using VBScript. Example:

                        With New RegExp
                        .Pattern = " {2,}"
                        .Global = True
                        text = .Replace(text, " ")
                        End With

                        --- single minded; short sighted; long gone;

                        S Offline
                        S Offline
                        Socheat Net
                        wrote on last edited by
                        #11

                        I currently using ASP

                        ................

                        C G 2 Replies Last reply
                        0
                        • S Socheat Net

                          I currently using ASP

                          ................

                          C Offline
                          C Offline
                          Christian Graus
                          wrote on last edited by
                          #12

                          What language are you using ? If C#, or VB.NET, you are using ASP.NET. Otherwise, you are in the wrong forum.

                          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                          K 1 Reply Last reply
                          0
                          • S Socheat Net

                            I am very sorry I don't understand, please give as ASP code Regard Socheat

                            ................

                            C Offline
                            C Offline
                            Christian Graus
                            wrote on last edited by
                            #13

                            OK - please ask in the web development forum. Why are you using ASP ? It's a nightmare....

                            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                            1 Reply Last reply
                            0
                            • C Chetan Ranpariya

                              Not able to get your problemm:(

                              Thanks and Regards, Chetan Ranpariya

                              K Offline
                              K Offline
                              kashasd
                              wrote on last edited by
                              #14

                              I think my question is not clear to u Assume that we have 10 Store procedures in a database and we only knows names of Store procedures only, Each SP is having its own number of input parameters depends on it requirements i wnat to write a code.... To find the number of input parameters in each SP Thank you

                              kishore kumar Manikonda Software Developer

                              G 1 Reply Last reply
                              0
                              • C Christian Graus

                                What language are you using ? If C#, or VB.NET, you are using ASP.NET. Otherwise, you are in the wrong forum.

                                Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                                K Offline
                                K Offline
                                kashasd
                                wrote on last edited by
                                #15

                                I think my question is not clear to u Assume that we have 10 Store procedures in a database and we only knows names of Store procedures only, Each SP is having its own number of input parameters depends on it requirements i wnat to write a code.... To find the number of input parameters in each SP Thank you

                                kishore kumar Manikonda Software Developer

                                1 Reply Last reply
                                0
                                • G Guffa

                                  Use the Regex.Replace method to replace multiple spaces (pattern = " {2,}") with a single space.

                                  --- single minded; short sighted; long gone;

                                  K Offline
                                  K Offline
                                  kashasd
                                  wrote on last edited by
                                  #16

                                  I think my question is not clear to u Assume that we have 10 Store procedures in a database and we only knows names of Store procedures only, Each SP is having its own number of input parameters depends on it requirements i wnat to write a code.... To find the number of input parameters in each SP Thank you :)

                                  kishore kumar Manikonda Software Developer

                                  1 Reply Last reply
                                  0
                                  • K kashasd

                                    I think my question is not clear to u Assume that we have 10 Store procedures in a database and we only knows names of Store procedures only, Each SP is having its own number of input parameters depends on it requirements i wnat to write a code.... To find the number of input parameters in each SP Thank you

                                    kishore kumar Manikonda Software Developer

                                    G Offline
                                    G Offline
                                    Guffa
                                    wrote on last edited by
                                    #17

                                    I think that you are truly confused. You are replying to people who didn't reply to your question.

                                    --- single minded; short sighted; long gone;

                                    1 Reply Last reply
                                    0
                                    • S Socheat Net

                                      I currently using ASP

                                      ................

                                      G Offline
                                      G Offline
                                      Guffa
                                      wrote on last edited by
                                      #18

                                      Socheat.Net wrote:

                                      I currently using ASP

                                      I posted ASP code.

                                      --- single minded; short sighted; long gone;

                                      1 Reply Last reply
                                      0
                                      • S Socheat Net

                                        You it contain many space with it u can view it, it like that "Hello World"

                                        ................

                                        B Offline
                                        B Offline
                                        bernie_011
                                        wrote on last edited by
                                        #19

                                        hi, i am using CreateUser Wizard to add user information in aspnet_profile table like firstName,lastName etc. but all data are stored in one propertyvaluesString. How can i add column like lastName and insert the lastName value to lastName column Thanks Bernie

                                        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