Ask a Question related to ASP.NET General, Design and Development.
-
Duppypog #1
How to display Message when Dataset is Null
I have an asp.net page using a repeater control to display a dataset. When
the dataset returned is null (no records matched the criteria) I want to
display a message to the effect "No matching records found". I can't figure
out how to do this.
Any help is greatly appreciated,
Lynnette
Duppypog Guest
-
DataSet/DataGrid/Null values
Strange thing - when I bind a dataset to a datagrid and the dataset column has null values, I cannot edit it. If I try to edit the value, it just... -
update row with null numeric or datetime dataset cell values in a datagrid
I keep getting the, now, dreaded "System.FormatException: String was not recognized as a valid DateTime" error when updating a datagrid row that has... -
Remove row with null value from DataSet??
I'm getting null values in a DataSet which is pulling its data from a web service. The nulls are creating 'System.Data.ConstraintException' in the... -
Null values in typed dataset
Hi! I have a typed dataset which I fill from a select statement, but some columns in my result my be null. When I read this null columns in my... -
Return a NULL dataset from a webservice ??!
When my webservice returns a null dataset my application crashes. null exception error. Has anyone experianced this ? and wondering if anyone has a... -
Jay Pondy #2
Re: How to display Message when Dataset is Null
Add a DIV tag as HTMLGeneric with runat set to server. Before you bind to
the repeater check to see if the dataset is empty. If it is turn on the DIV
tags display property and turn off the repeater.
"Duppypog" <duppypog@nospam.com> wrote in message
news:%23f$8X6OPDHA.3700@tk2msftngp13.phx.gbl...When> I have an asp.net page using a repeater control to display a dataset.figure> the dataset returned is null (no records matched the criteria) I want to
> display a message to the effect "No matching records found". I can't> out how to do this.
>
> Any help is greatly appreciated,
> Lynnette
>
>
Jay Pondy Guest



Reply With Quote

