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. Numeric Autogeneration

Numeric Autogeneration

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
10 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
    srinivaskonijeti
    wrote on last edited by
    #1

    I want code to autogenerate a 4 digit number without alphabets..in asp.net plz post ASAP........

    E B H B A 5 Replies Last reply
    0
    • S srinivaskonijeti

      I want code to autogenerate a 4 digit number without alphabets..in asp.net plz post ASAP........

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

      There are so many things wrong with this post I dont know where to start... so I wont

      The answers posted by me are suggestions only and cannot be used in anyway against me.

      J 1 Reply Last reply
      0
      • S srinivaskonijeti

        I want code to autogenerate a 4 digit number without alphabets..in asp.net plz post ASAP........

        B Offline
        B Offline
        Blue_Boy
        wrote on last edited by
        #3

        Well,it would be better if you make re-question but with more details.


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

        1 Reply Last reply
        0
        • S srinivaskonijeti

          I want code to autogenerate a 4 digit number without alphabets..in asp.net plz post ASAP........

          H Offline
          H Offline
          HemJoshi
          wrote on last edited by
          #4

          string getmaxids; Random intRandomNumber = new Random(); int x; x = intRandomNumber.Next(1000, 9999); getmaxids = string.Format("{0}", x ); MessageBox.Show(getmaxids);

          E 1 Reply Last reply
          0
          • S srinivaskonijeti

            I want code to autogenerate a 4 digit number without alphabets..in asp.net plz post ASAP........

            B Offline
            B Offline
            Brij
            wrote on last edited by
            #5

            Please be more specific and detailed

            Cheers!! Brij

            1 Reply Last reply
            0
            • S srinivaskonijeti

              I want code to autogenerate a 4 digit number without alphabets..in asp.net plz post ASAP........

              A Offline
              A Offline
              Ashfield
              wrote on last edited by
              #6

              int x = 1234

              there you go. or, if you prefer vb,

              dim x as int = 1234

              Bob Ashfield Consultants Ltd

              1 Reply Last reply
              0
              • E eyeseetee

                There are so many things wrong with this post I dont know where to start... so I wont

                The answers posted by me are suggestions only and cannot be used in anyway against me.

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #7

                Always look on the bright side of life - At least the subject was more-or-less descriptive.

                E 1 Reply Last reply
                0
                • J J4amieC

                  Always look on the bright side of life - At least the subject was more-or-less descriptive.

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

                  LOL! The glass is half full

                  The answers posted by me are suggestions only and cannot be used in anyway against me.

                  1 Reply Last reply
                  0
                  • H HemJoshi

                    string getmaxids; Random intRandomNumber = new Random(); int x; x = intRandomNumber.Next(1000, 9999); getmaxids = string.Format("{0}", x ); MessageBox.Show(getmaxids);

                    E Offline
                    E Offline
                    ednrg
                    wrote on last edited by
                    #9

                    First of, that's completely wrong. 0001 is a number. Secondly, stop posting code to do other people's homework. It doesn't help them, it only hinders them.

                    H 1 Reply Last reply
                    0
                    • E ednrg

                      First of, that's completely wrong. 0001 is a number. Secondly, stop posting code to do other people's homework. It doesn't help them, it only hinders them.

                      H Offline
                      H Offline
                      HemJoshi
                      wrote on last edited by
                      #10

                      Hi If you think it completly wrong than definiely it is...I know that there will be no 0001 if we follow the above code. It's just for the hint not the complete code. Here in discussion I think we get a direction how we have to preceed and moreover the question itself was not clear.

                      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