AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 how to upload image using gridview
Posted by sreedhar MA on  2/14/2011 9:18:06 AM Category: ADO.NET
Add to my favorites
Email to friend
i want to upload a image into the database using gridview and display it in gridview, how to do?

Post Your Reply Post New Question

 Viewer's Reply
how to upload image using gridview
Answered By prashant on 2/16/2011 2:32:49 AM
Hi,
Use template filled
in ItemTemplate Use image tag and give ImageUrl='<%#
Eval ( Databasecolumn name", "~/images/categories/{0}" ) %>

and in EditItemTemplate use Image uploader control
 
Image field
Answered By self innovator on 12/9/2011 10:52:21 PM
Use image field with in a Gridview to Dispaly image.

Ex-:<Itemtemplate>
<asp:image id="img1" runat="server" imageurl="../Imagepath">
</itemtemplate>
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Backup and Recovery Best Practices for Microsoft SQL Server 2005
The Art & Science of JavaScript - Free 100 Page Preview!
The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks - Free 158 Page Preview