开发者

How to access files remotely in asp.net website?

I am making a website in asp.net using c# and sql server 2008. I made one web form in which there are two buttons, on first button click ,i开发者_如何学JAVA select a excel file from my computer drive. and on second button click ,,the whole file data is copied to sql server table. this works fine. but i want to know how can i load and saved that file in databse table, if i want to access that website from another system. how to access that system files remotely.


Save that Excel file on the server

FileUpload1.SaveAs(Server.MapPath("~/AppFolderName/" + FileName));

and then later on you will able to access the same file from any where from application server


You have to upload that file on server first in order to access it. you can do it by Fileeupload control and HttpPostedFile

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜