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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. One last hope

One last hope

Scheduled Pinned Locked Moved Visual Basic
help
6 Posts 2 Posters 1 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
    Pete Newman
    wrote on last edited by
    #1

    VS2005 (vb) and SQL2005 :sigh: ok im nearly beaten here... think its lack of sleep I need a very very kind person to help me out as im totally losing the will to live Ok i have an Default.aspx page with a textbox ( ID TXT1 ) and a Button. what i want to do, what ive been trying to do is when the button is clicked, it basicly does a a "Select count(*) from Table1.dbo.users where name = '" & TXT1.text & "'" and display the return value ok to some its simple stuff but i have to start somewhere :^), so please can you explain it in laymans terms thank you

    I really do need help..... all this computer stuff is way over my head !!

    N 1 Reply Last reply
    0
    • P Pete Newman

      VS2005 (vb) and SQL2005 :sigh: ok im nearly beaten here... think its lack of sleep I need a very very kind person to help me out as im totally losing the will to live Ok i have an Default.aspx page with a textbox ( ID TXT1 ) and a Button. what i want to do, what ive been trying to do is when the button is clicked, it basicly does a a "Select count(*) from Table1.dbo.users where name = '" & TXT1.text & "'" and display the return value ok to some its simple stuff but i have to start somewhere :^), so please can you explain it in laymans terms thank you

      I really do need help..... all this computer stuff is way over my head !!

      N Offline
      N Offline
      nlarson11
      wrote on last edited by
      #2

      Pete, let's start slow... 1) are you able to establish a database connection from your webpage?

      P 1 Reply Last reply
      0
      • N nlarson11

        Pete, let's start slow... 1) are you able to establish a database connection from your webpage?

        P Offline
        P Offline
        Pete Newman
        wrote on last edited by
        #3

        Hi, Thanks for the reply. this is all new to me and im struggling like mad. Just for background, Im trying to create an Intra-net project... as a tester. I have my web.config file which has the connection string to the SQL server, and im presuming that if the connection string was incorrect there would be an error. as below The only conponents i have added are the textbox and Button section of web.config thanks :)

        I really do need help..... all this computer stuff is way over my head !!

        P 1 Reply Last reply
        0
        • P Pete Newman

          Hi, Thanks for the reply. this is all new to me and im struggling like mad. Just for background, Im trying to create an Intra-net project... as a tester. I have my web.config file which has the connection string to the SQL server, and im presuming that if the connection string was incorrect there would be an error. as below The only conponents i have added are the textbox and Button section of web.config thanks :)

          I really do need help..... all this computer stuff is way over my head !!

          P Offline
          P Offline
          Pete Newman
          wrote on last edited by
          #4

          grrr sorry this is what was meant to be added I really do need help..... all this computer stuff is way over my head !!

          P 1 Reply Last reply
          0
          • P Pete Newman

            grrr sorry this is what was meant to be added I really do need help..... all this computer stuff is way over my head !!

            P Offline
            P Offline
            Pete Newman
            wrote on last edited by
            #5

            nlarson11 I got an email from the site, but no message on the forum :^) . From the email tho yes i know the connection string is correct. If its easier you can mail me direct ?

            I really do need help..... all this computer stuff is way over my head !!

            N 1 Reply Last reply
            0
            • P Pete Newman

              nlarson11 I got an email from the site, but no message on the forum :^) . From the email tho yes i know the connection string is correct. If its easier you can mail me direct ?

              I really do need help..... all this computer stuff is way over my head !!

              N Offline
              N Offline
              nlarson11
              wrote on last edited by
              #6

              look at your webpage. double click on the button that will add code for the click event of your button inside the click event-connect to the database. run your select statement returning a dataset(ds) using either a helper or an adapter textbox1.text = ds.tables(0).rows(0)(0) -- modified at 10:58 Tuesday 24th October, 2006

              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