How do I fill a textbox from a recordset - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How do I fill a textbox from a recordset

I currently am working on a project where I need to populate a textboxes from a db. I have the connection string and recordset working. I am passing the values from the db to the screen using 'response.write RS("myfields")', etc.
But what I really need to do is pass the variables to my textboxes and I can't get it to do this.

Does anyone know how to do this????

Jose

Comments

  • Lets say you have a text box in your ASP page, like so:



    To put text into the text box, do this:

    " size="30">

    You could also do something similar using Response.Write:

    Response.Write("")

    Hope this helps,
    Matt(AA)

    : I currently am working on a project where I need to populate a textboxes from a db. I have the connection string and recordset working. I am passing the values from the db to the screen using 'response.write RS("myfields")', etc.
    : But what I really need to do is pass the variables to my textboxes and I can't get it to do this.
    :
    : Does anyone know how to do this????
    :
    : Jose
    :


Sign In or Register to comment.