Displaying the image from db from grid to photoviewer.

Posted by Gokul under Regular Expressions on 12/1/2010 | Points: 10 | Views : 1758 | Status : [Member] | Replies : 3
Hi friends,
I ve loaded the image the image from Db and placed in grid. Now if i click the image in the grid , it should open in a new screen as we normally view the photos in the system. Can any help me in finding out?

Thanks and Regards,
GokulNath Nithy.



Responses

Posted by: T.saravanan on: 12/1/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Gokul,

You can split your function for show a selected image from gridview.

Display a Image in GridView Refer this links..

http://www.codeproject.com/KB/aspnet/Thumbnail_Images.aspx

http://msdn.microsoft.com/en-us/library/aa479350.aspx

When you show a image in GridView at the same time you can get the image path and set into another column in your gridview.
If user select (or) click a image in gridview means just get the path and pass into another page at that page you have Image (or) any other control.

Refer the following links for to display a image...

http://www.codeproject.com/KB/database/albumviewer.aspx

http://www.devasp.net/net/articles/display/385.html

Using PhotoViewer....(But its in VB language)

http://www.devx.com/dotnet/Article/33861

Try this way...

Cheers :)


Thanks,
T.Saravanan

Gokul, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gokul on: 12/1/2010 [Member] Starter | Points: 25

Up
0
Down
can u pls give me in vry simple format?


Thanks and Regards,
GokulNath Nithy.

Gokul, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: T.saravanan on: 12/2/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Gokul,

Its also a simple way becuase user select a image from GridView at that time how to you copy a image from GridView then only i said add a column in gridview to set the image path in that column. If user click a image means just pass the path you easily to show the image in your control.
So i gave the links for different functions. Just try it..
If you have problem means i will guide you..


Thanks,
T.Saravanan

Gokul, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response