Thursday, 15 March 2012

c# - FTP Connection in app.config -



c# - FTP Connection in app.config -

i want connect ftp server within c# code, , want store ftp server, user , password within app.config. not want store in different file , neither hardcode ftp within c#.

how do that?

i know connectionstrings far have used sql, not ftp, , not know how create work ftp. far haven't found reply on how set ftp info within app.config

add web.config

<appsettings> <add key="ftp_url" value="" /> <add key="user" value="" /> <add key="pass" value="" /> </appsettings>

and in c# code this

configurationmanager.appsettings["ftp_url"];

c# ftp connection app-config

No comments:

Post a Comment