如何将图像上传到网站 [英] How to Upload Images into Website

查看:60
本文介绍了如何将图像上传到网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

正在使用asp.net,C#,SqlServer2005.

我的要求是将图像上传到解决方案资源管理器的IMAGES文件夹.

我想将图像从PC上传到我的网站.

我有一个网页,其中包含使用Image1,Image2,Image3,Image4,Image5滚动图像.这些图像将在网站中滚动.

现在,我想每周更改图片.因此,我想将新图像上传到我的网站文件夹中.以便显示新图像.

我使用新网页"和文件上传控制"将图像上传到解决方案资源管理器"文件夹中.


请告诉我该怎么做.顺便说一下,该网站的管理员.

请帮忙.

谢谢.

Hi Everyone,

am working on asp.net,C#,SqlServer 2005.

My requirement is Uploading Images into Solution Explorer IMAGES Folder.

I want to Upload Images from my PC to my Website.

I have a webpage with Scrolling Images with Image1,Image2,Image3,Image4,Image5. These Images will scroll in the website.

Now I want to Change Images for every week. So i want to upload new Images into my website folder. So that it display new images.

I took New Webpage and File upload Control to upload the images into the Solution Explorer Folder.


Please can you tell me how to do this.By the way am administrator for this website.

Please help.

Thanks.

推荐答案


这很简单,只需参考
http://www.tamilcodes .com/asp-net/using-fileupload-control-to-upload-files-in-asp-net-and-c/ [ http://csharpdotnetfreak.blogspot.com/2009/07/fileupload-control- save-images-database.html [ ^ ]
Hi
this is simple just refer
http://www.tamilcodes.com/asp-net/using-fileupload-control-to-upload-files-in-asp-net-and-c/[^]

for to save uploaded image to your project folder

next while updating database insert image url in in sql table


Or


Refer below link for complete solution
http://csharpdotnetfreak.blogspot.com/2009/07/fileupload-control-save-images-database.html[^]


这篇关于如何将图像上传到网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆