Many times we want to show an image, when grid
view is empty or gridview has no data. We already know EmptyDataTextproperty
where we can show
only Text but if we want to more control likes Image, hyperlink etc.
Then we have use EmptyDataTemplate property insource code
likes below
<EmptyDataTemplate>
<asp:ImageID="imgOne"
ImageUrl="~/images/no msg.jpg"
AlternateText="No results"
runat="server"/>
</EmptyDataTemplate>
`
Display an Image when the GridView has no data in asp.net c#
Reviewed by NEERAJ SRIVASTAVA
on
11:53:00 AM
Rating: 5
This content creates a new hope and inspiration with in me. Thanks for sharing article like this. The way you have stated everything above is quite awesome. Keep blogging like this.
This content creates a new hope and inspiration with in me. Thanks for sharing article like this. The way you have stated everything above is quite awesome. Keep blogging like this.
ReplyDeleteDotNet Training in Chennai Adyar