Results 1 to 4 of 4

Thread: Place Data Into Textbox From ObjectDataSource

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2009

    Place Data Into Textbox From ObjectDataSource

    I have a web page where I am using an Object Datasource to pull data from my database. It will get one record. I want to be able to fill textboxes on my page with this pull.


    What do I do to get the data from the "Select" into the fields?

    Eddi Rae

  2. #2
    Super Moderator Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Mumbai, India

    Re: Place Data Into Textbox From ObjectDataSource

    Moved from Visual Basic .NET
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - 2015 IMP Links : Acceptable Use Policy, FAQ
    OMEN by HP - 15-ce073tx with Win10+Office 2013. || Mac Book Pro (10.6.8) with Office 2011

  3. #3
    King of sapila
    Join Date
    Oct 2006

    Re: Place Data Into Textbox From ObjectDataSource

    Haven't used an xxdatasouce for a while but you probably can use the %eval or %bind interaptors on markup or you can handle they databound or what function odatasource provides you on server side, to insert the data to the textboxes.
    Unless %bind works, i think(if i remember correctly) that you will have to handle the "e" parameter on the binding function to get the row and then cut down the cells.
    You can of course call the data as you would have called it in vbforms and bind the textboxes (when i say bind, i mean txt1.text= thevalue). This is if you are strict on using server side calls on the page, else you will go to webservices, the future of web calling.
    In general for just one row, instead of goinf to all that trouble, a call to can do the trick.

  4. #4
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    The Granite City

    Re: Place Data Into Textbox From ObjectDataSource


    Here is a complete description of what you need to do to achieve what you want:

    Hope this helps!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width