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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.