Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datalist - no records

Status
Not open for further replies.

wallm

Programmer
Apr 4, 2005
69
GB

I have a querystring that passes to the page and selects records to display in my datalist.
Is there a template in the datalist for no records such as the EmptyDataTemplate in the Gridview?

thanks.
 
No, there is no template in the DataList for that.

But, you can not databind the datalist if you have no records. And place a Labal under the DataList that is invisible, and set Visible = true if the record count is zero to display a message.
 
ok must go and work out how to do that.

cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top