i want to save image into database and retrive it with grid view ?
using linq to sql and also sql..
Thank You
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
RakeshRank #397 · 6.3K reputationPosted Aug 4, 2015, 1:20 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 4, 2015, 1:21 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 4, 2015, 1:22 AM EDT
RakeshRank #397 · 6.3K reputationPosted Aug 4, 2015, 1:24 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 4, 2015, 1:32 AM EDT
asp:gridview id="grid" runat="server" onrowdatabound="grid_RowDataBound" xmlns:asp="#unknown"> columns> asp:templatefield> itemtemplate> asp:image runat="server" id="img" width="100px" height="100px" /> /itemtemplate> /asp:templatefield> /columns> /asp:gridview>protected void gvUserInfo_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Image img= (Image)e.Row.FindControl("img"); var Data=from p in p.TableName select p; img.ImageUrl=Data.first().ImageColumnName; } }