Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to display Message when Dataset is Null

Reply
Thread Tools

How to display Message when Dataset is Null

 
 
Duppypog
Guest
Posts: n/a
 
      06-27-2003
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


 
Reply With Quote
 
 
 
 
Jay Pondy
Guest
Posts: n/a
 
      06-28-2003
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" <> wrote in message
news:%23f$...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display a picture for say 5 seconds and then display a message. Mufasa ASP .Net 6 07-26-2007 11:09 PM
"stringObj == null" vs "stringObj.equals(null)", for null check?? qazmlp1209@rediffmail.com Java 5 03-29-2006 10:37 PM
DataSet and dataSet JimO ASP .Net 2 03-08-2006 02:39 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N ASP .Net 1 10-31-2003 02:39 AM
DataSet to DataSet Joseph D. DeJohn ASP .Net 1 08-04-2003 03:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57