UPDATING database through textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yash777
    New Member
    • Mar 2008
    • 20

    UPDATING database through textbox

    hello all,

    i m trying to edit the values in database through textbox in ASP.

    first i retrived the values from database and set those values to the value property of textboxes on the form so that user can see the old values.

    now, i want him to enter new values in the same textboxes and when he click on update the new values should be updated in the database.

    can any one tell what i have to do to get those new values????
    when to submit the form????
  • yash777
    New Member
    • Mar 2008
    • 20

    #2
    oh, i got the answer.

    it was a silly mistak from my side in the query.

    it is working fine.

    Comment

    • omerbutt
      Contributor
      • Nov 2006
      • 638

      #3
      Originally posted by yash777
      hello all,

      i m trying to edit the values in database through textbox in ASP.

      first i retrived the values from database and set those values to the value property of textboxes on the form so that user can see the old values.

      now, i want him to enter new values in the same textboxes and when he click on update the new values should be updated in the database.

      can any one tell what i have to do to get those new values????
      when to submit the form????
      yash you have to provide the working code along with your post otherwise no one is going to even look at your post, no one is going to write the code for you,and it is very difficult where to start from all we can do is advise you or point the wrong line of code so that you can get it working ,and for your solution make a connection to the database browse those values to your text field and then modify any of the value you want in the text box then submit that form on to another page and then make a new connection write the query and yes do pass the id_no (primary_key) to that page also along with the values of the form and then write your sql statement in which you compare with that id_no/primary_key so that you can update the exact record in the database ....:) ,hope that would help

      Comment

      • yash777
        New Member
        • Mar 2008
        • 20

        #4
        thanx for ur reply.

        i will keep that in mind next time for sure.

        Comment

        • omerbutt
          Contributor
          • Nov 2006
          • 638

          #5
          Originally posted by yash777
          thanx for ur reply.

          i will keep that in mind next time for sure.
          i hope you didnt mind that yash :) of course we are glad to help come again anytime
          cheers,
          regards,
          omer

          Comment

          • sandeepv
            New Member
            • Jan 2009
            • 8

            #6
            hey yash....
            can you please explain it to me how u did it?????

            Comment

            Working...