In this article we will see how to display image in a gridview from and folder reside in serve as well as images from database (SQL Server).
In both the case we need a Template column in a gridview and add html image (img) tag in it. you can also take asp.net image control but it will generate view state so we have taken html img tag.
if you are using asp.net image control than i would suggest that make the EnableViewState property of image control to false.
0 comments:
Post a Comment