.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!



Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

file upload to a particular location.

Posted By :Jayakumar     Posted Date :19/03/2010    Points :2   Category :Windows Application
hi,

in windows application,c#.

i have a txtbox and 2 buttons(browse, save);

how to pick a particular file and to save that in a particular location.

i have picked a particular file but i done how to save so suggest me.

regards
jai

Responses
Author: Lalit        Company URL: http://www.dotnetspark.com           
Posted Date: 19/03/2010     Points: 5
Author: Jayakumar        Company URL: http://www.dotnetspark.com           
Posted Date: 19/03/2010     Points: 5

hi look is this right...


FileInfo str = new FileInfo(FileName);
File.Copy(textBox13.Text, Application.StartupPath + "D:\\Sahana-Projects\\" + str.Name);


jai

Author: sagar pardeshi        Company URL: http://www.emanonsolutions.net           
Posted Date: 26/03/2010     Points: 5
Author: sagar pardeshi        Company URL: http://www.emanonsolutions.net           
Posted Date: 26/03/2010     Points: 5
Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend