network credentials in web config
-
i use the following in web config file <appsetting> <add key="AuthLogName" value="12345"/> <add key="AuthPwd" value="56789> </;appsetting> and in cs file, i access the above credentials using following object.Proxy.Credentials = new NetworkCredential(app.GetValue("AccUName", Type.GetType("System.String")).ToString(), app.GetValue("AccPwd", Type.GetType("System.String")).ToString(), app.GetValue("AccDomain", Type.GetType("System.String")).ToString()); i wana avoid the code in cs fine and directly give it under web config file how do i do thanks jiny
-
i use the following in web config file <appsetting> <add key="AuthLogName" value="12345"/> <add key="AuthPwd" value="56789> </;appsetting> and in cs file, i access the above credentials using following object.Proxy.Credentials = new NetworkCredential(app.GetValue("AccUName", Type.GetType("System.String")).ToString(), app.GetValue("AccPwd", Type.GetType("System.String")).ToString(), app.GetValue("AccDomain", Type.GetType("System.String")).ToString()); i wana avoid the code in cs fine and directly give it under web config file how do i do thanks jiny
I think I can see why no one has responded yet to this post. I would like to help, but it is not clear based on the post what you are interested in accomplishing that is different than what you already have.