Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a Gridview control and there are 6 columns and 6 rows. and a database. and i have some pics in my database images columns.
i want to show one by one images inside my girdview control.
first i want to convert images inside the database into binary format and then i want to show on the girdview by the handler . please help me guys
Posted

1 solution

First when images insert into dtabase crop the images in coding.
use the webservices and jquery.

Supoose tha you have a table that imageiD,ImageName etc.

then create a method foreach select Image

C#
public string getAllImages()
{
if (user.identity.Isauthenticated)
{

ImageClass[] objclass=ImageClass.Get(convert.toint32(imageID));

if(objclass!=null)
{
foreach(Imageclass obj in objclass)
{
stringbuilder sb=new stringbuilder();
sb.Append("+obj.ImageName+");
}
}
return sb.tostring();

}
..................

then this service call on click useing jquery..


}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900