public static String GetSession(String sFilter)
{
string adsPath = "LDAP://af.ad.uum";
string[] attribs = new string[] { "employeeID" };
String username = null;
String password = null;
DirectoryEntry de = new DirectoryEntry(adsPath, username, password, AuthenticationTypes.Secure);
return de;
}
refer to the above code, how do i pass password (the onet with yellow highlighted) to another page. and how to read it back in another page.. tq..please help..

Bryian TanRank #396 · 6.3K reputationPosted Feb 20, 2017, 11:01 AM EST
Hazel MahmudRank #4,713 · 329 reputationPosted Feb 20, 2017, 2:55 PM EST
{
get
{
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
service.Credentials = new WebCredentials("username", "password");
service.UseDefaultCredentials = true;
// service.Credentials = new WebCredentials(CredentialCache.DefaultCredentials);
//service.AutodiscoverUrl(mail);
// service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, mail);
service.Url = new Uri("https://.edu.my/EWS/exchange.asmx");
return service;
}
}
Bryian TanRank #396 · 6.3K reputationPosted Feb 20, 2017, 4:06 PM EST
service.UseDefaultCredentials = false;
service.Credentials = new NetCredential("myUserName", "password", "Domain");
Asma KhalidRank #160 · 14.7K reputationPosted Feb 20, 2017, 9:47 PM EST
Amit KumarRank #459 · 5.4K reputationPosted Feb 21, 2017, 12:12 AM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 21, 2017, 12:39 AM EST
Bryian TanRank #396 · 6.3K reputationPosted Feb 20, 2017, 10:27 AM EST
Vignesh ManiRank #98 · 22.1K reputationPosted Feb 20, 2017, 10:42 AM EST
Joginder BangerRank #360 · 7K reputationPosted Feb 20, 2017, 10:46 AM EST
Joginder BangerRank #360 · 7K reputationPosted Feb 20, 2017, 10:47 AM EST