Author: ripneet | Posted on: 8/18/2008 9:33:34 PM | Views : 532

Hi all..

I have a dropdown list showing the companies and a list box showing the accounts based on the company selected.
Now the problem is that if there is no account found, then the list box comes up empty. Is there any way i can display some text like "No Records" in the list box if no records are found ?
 
CODE:
 <TR>
            <TD><asp:Label id="lblCompany" runat="server" Text="Company"></asp:Label></TD>
            <TD>
                <asp:DropDownList id="ddlCompany" runat="server" DataTextField="name" DataSourceID="SqlDataSourceCompanies" DataValueField="id" AutoPostBack="True"></asp:Dro ...

Go to the complete details ...