I have a DataReader on a web page:<asp:SqlDataSourceID="ChangeInfoRecord"runat="server"ConnectionString........
I want to display the value of one of the returned field in a text box. What is the correct syntax? I tried
RolledFromDisplay.Text = ChangeInfoRecord("RolledFrom")
but that isn't it.
You can do something like this:DataView dv = SqlDataSource1.Select(DataSourceSelectArguments.Empty)as DataView;TextBox1.Text = dv[0]["Name"].ToString();
No comments:
Post a Comment