Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I retrieved around 50 images from sql and displayed in my web page. Count of images vary from customer to customer. I used datalist to retrieve the images with one imagebutton inside.

Now when user clicks the image i want the image to be opened in picture manager or Image viewer. When user clicks next button in picture manager, all the images to be shown. Is it possible with c# code....
Posted

1 solution

Yes , you can use

System.Diagnostics.Process.Start(imagepath);


This will launch the image in the default Image Viewer.
 
Share this answer
 
Comments
Gautam Raithatha 22-Jan-14 7:09am    
this will start the process on web server (ofcourse if it has rights) and not on site's user PC.
sukumari1 23-Jan-14 13:10pm    
how do i mention the imagepath, the folder is under root directory of project...
JoCodes 23-Jan-14 22:20pm    
use server.mappath method.
sukumari1 24-Jan-14 5:04am    
Thank u so much. It worked.
JoCodes 24-Jan-14 5:08am    
Can you accept it as a solution and may be a upvote if it helped . ( I already got a downvote for it :-) )

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