Thursday, October 21, 2010

Read from WebConfig

 webconfig configuration
    < appSettings >

        < add key="ROOT_TEMP" value="\\dir\" / >
cs CODE

using System.Configuration;
public string ROOT_TEMP = ConfigurationManager.AppSettings["ROOT_TEMP"].ToString();

Wednesday, October 6, 2010

Impersonate User in C# web application

 
       
          userName="user"
          password="password" />