I wonder is there anyway I can put the returned value from SELECT statement from sqldatasource into a textbox.
I have a simple select statement in a sqldatasource:
SELECT X, Y, Z FROM tablexyz
So, I want the value from X, Y, Z to be displayed in 3 different textboxes. How do I do it? I am able to do it using datareader from code-behind, but I just want to know how to make use of the sqldatasource to make the whole things work.
Thanks
You could use either a gridview or a detailveiw to do that, and strip out all of the headers and footers.
I would have thought it would be easier to just use the datareader and some text boxes, I guess it depends on what you are trying to achieve.
HTH
No comments:
Post a Comment