hi..
i want to display images inside gridview..
i was stored the name of the images in database..
my table is like this..
id un imgname createdvy
1 ram a.jpg admin
2 raj b.jpg admin
3 sam c.jpg admin
here i want to display the images inside the gridview.
i was taking the image values in dataset and assign the values in imagebutton inside gridview..
i was getting the three values and also i was find the imgbutton control inside gridview..
but my code in rowdatabound
string Thumb;
dataset ds=new dataset();
da.fill(ds);
ImageButton ibtn_CatImage = (ImageButton)e.Row.FindControl("ibtn_CatImage");
for(int i=0;ds.tables[0].rows.count;i++)
{
string foldername=ds.Tables[0].Rows[val]["imgname"];
string path = ConfigurationManager.AppSettings["path"] + @"ImageResource/CategoryThumbImages/" + foldername+ @"/" + ibtn_CatImage.ImageUrl;
Thumb = path;
ibtn_CatImage.ImageUrl = Thumb;
}
so here the values are concardinated and it doesnot show the images inside the gridview..
how to tackle this problem..
need ur suggestions with example..
regards
gopal.s