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. General Programming
  3. C#
  4. c# sql server 2000 login code

c# sql server 2000 login code

Scheduled Pinned Locked Moved C#
databasetutorialcsharpsql-serversysadmin
8 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.
  • G Offline
    G Offline
    ginji20
    wrote on last edited by
    #1

    :laugh: can some one tell me how to compare textbox value if the same with database value..

    textbox1.text == dr1["password"].tostring();

    dr1 is datarow.. everytime i run the program even if the value of the are the same it still exits... for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same thanks ginji

    A N 2 Replies Last reply
    0
    • G ginji20

      :laugh: can some one tell me how to compare textbox value if the same with database value..

      textbox1.text == dr1["password"].tostring();

      dr1 is datarow.. everytime i run the program even if the value of the are the same it still exits... for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same thanks ginji

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      1. Make Sure There is no space in the text , means infront and in the end. some times its makes a big issue. 2. try it if(textbox1.text.equals(dr1["password"]) { //Do some thing }

      Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

      G 1 Reply Last reply
      0
      • A Abhijit Jana

        1. Make Sure There is no space in the text , means infront and in the end. some times its makes a big issue. 2. try it if(textbox1.text.equals(dr1["password"]) { //Do some thing }

        Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

        G Offline
        G Offline
        ginji20
        wrote on last edited by
        #3

        thanks... but it still the same output..

        A 1 Reply Last reply
        0
        • G ginji20

          thanks... but it still the same output..

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          could you please put the code block over here, which will be helpful for us to give some solluation.

          Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

          1 Reply Last reply
          0
          • G ginji20

            :laugh: can some one tell me how to compare textbox value if the same with database value..

            textbox1.text == dr1["password"].tostring();

            dr1 is datarow.. everytime i run the program even if the value of the are the same it still exits... for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same thanks ginji

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
            // Your strings are equal.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            G A 2 Replies Last reply
            0
            • N N a v a n e e t h

              if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
              // Your strings are equal.

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              Hi navaneeth, is there any thuig wrong with this if(textbox1.text.equals(dr1["password"]) { //Do some thing }

              Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

              N 1 Reply Last reply
              0
              • N N a v a n e e t h

                if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
                // Your strings are equal.

                All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                G Offline
                G Offline
                ginji20
                wrote on last edited by
                #7

                thanks alot...

                1 Reply Last reply
                0
                • A Abhijit Jana

                  Hi navaneeth, is there any thuig wrong with this if(textbox1.text.equals(dr1["password"]) { //Do some thing }

                  Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

                  N Offline
                  N Offline
                  N a v a n e e t h
                  wrote on last edited by
                  #8

                  I don't think so. Check this[^]

                  All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                  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