Hi,
Display an image when their is no data in the gridview.
demo
code
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1"
ShowFooter="true" AllowPaging="True" AllowSorting="True">
<EmptyDataTemplate>
<asp:Image id="imgOne"
ImageUrl="~/images/Emptydata.jpg"
AlternateText="No results"
runat="server"/>
</EmptyDataTemplate>
DataSourceID="SqlDataSource1"
ShowFooter="true" AllowPaging="True" AllowSorting="True">
<EmptyDataTemplate>
<asp:Image id="imgOne"
ImageUrl="~/images/Emptydata.jpg"
AlternateText="No results"
runat="server"/>
</EmptyDataTemplate>
sample code
Have a nice day... 'N happy Coding :)
No comments:
Post a Comment