Datalist default message
-
Hi Guys, This is a newbie type question for ya. I have a datalist on a usercontrol, that is bound to an object datasource. What I want to do is display a default message if the objsource does not return any records,
Kind Regards, Gary
My Website || My Blog || My Articles
-
Hi Guys, This is a newbie type question for ya. I have a datalist on a usercontrol, that is bound to an object datasource. What I want to do is display a default message if the objsource does not return any records,
Kind Regards, Gary
My Website || My Blog || My Articles
Not sure I understand, but I think what you're asking is how to find out the number of rows in a datalist? Look for List.Rows.Count, and then take action (such as hiding the list and showing a div) depending on the result... Or have I misunderstood you?
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox