How to show data bind record in regular textbox object ?

  • Thread starter Thread starter Henry Lee
  • Start date Start date
H

Henry Lee

hi,
In ASP 2.0 , using datasource object with Gridview databind feature is
really easy to show records from database. However , I want to do the
samething but using textbox object because there are lots limit in Gridview
item template. I am not sure can I do that with datasource object since text
box has no data bind feature. And I can not find the "recordset" in
datasource object for me to get the data and put it into textbox.text.
Any idea will be very appreciated,
Henry
 
you need to use binding syntax. ie textbox.Text = '<%# Eval("field")
%>'. it will automatically iterate over each item in the datasource
for the grid.

HTH,
Darren Kopp
http://blog.secudocs.com/
 
er, i meant on your textbox control you set text='<%# Eval("field")
%>'

sorry about that.

-darren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top