Showing posts with label display. Show all posts
Showing posts with label display. Show all posts

Friday, March 23, 2012

Movenext to next record in dataset if condition not met!

Does anyone know how I can not display a record or skip to next record in
dataset if a condition is not met? I can get it to put a blank when the
condition is true, but the report is displaying the row where the data would
be. So, it looks like a blank line.
For example I am trying to say If the field value coming in is < 6 display
value Else skip to next record.
Can anyone help?dillig wrote:
> Can anyone help?
You have to set a filter for the whole table-row.
That should help
frank
--
www.xax.de

Monday, February 20, 2012

Move data from SqlDataSource to a TextBox

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();