如何从网页打开图像到图片管理器或图像查看器 [英] how to open the images from web page to picture manager or image viewer
本文介绍了如何从网页打开图像到图片管理器或图像查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从sql中检索了大约50张图片并显示在我的网页中。图像数量因客户而异。我使用datalist检索内部有一个图像按钮的图像。
现在当用户点击图像时,我希望图像在图片管理器或图像查看器中打开。当用户点击图片管理器中的下一个按钮时,将显示所有图像。是否可以使用c#代码....
解决方案
是的,你可以使用
System.Diagnostics.Process.Start(imagepath);
这将在默认的图像查看器中启动图像。 / BLOCKQUOTE>
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....解决方案Yes , you can use
System.Diagnostics.Process.Start(imagepath);
This will launch the image in the default Image Viewer.
这篇关于如何从网页打开图像到图片管理器或图像查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文