Click here to Skip to main content
15,909,822 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Lock the View Source tab from the web page Pin
minhpc_bk6-Jul-06 0:29
minhpc_bk6-Jul-06 0:29 
GeneralRe: Lock the View Source tab from the web page Pin
Vipin Venugopal6-Jul-06 0:52
Vipin Venugopal6-Jul-06 0:52 
GeneralRe: Lock the View Source tab from the web page Pin
eggsovereasy6-Jul-06 5:28
eggsovereasy6-Jul-06 5:28 
AnswerRe: Lock the View Source tab from the web page Pin
J4amieC6-Jul-06 1:00
J4amieC6-Jul-06 1:00 
Questionrow color in crystal report Pin
ptvce5-Jul-06 23:47
ptvce5-Jul-06 23:47 
QuestionHOW TO UPLOAD/ RETREIVE MUSIC FILE USING ASP.NET Pin
Faisal Khatri5-Jul-06 23:22
Faisal Khatri5-Jul-06 23:22 
AnswerRe: HOW TO UPLOAD/ RETREIVE MUSIC FILE USING ASP.NET Pin
mnaveed5-Jul-06 23:43
mnaveed5-Jul-06 23:43 
QuestionProblem in retrieving the email id from active directory [modified] Pin
wilssmith5-Jul-06 22:29
wilssmith5-Jul-06 22:29 
Hi
I am having some problem while I try to retrieve an email address from the active directory

The scenario is that
I am having a login name and with that I want to get corresponding email address from active directory.

Then I have to send an email to the email address through code..
--------------------------------------------------
while directory search it is giving me an exception
DirectoryEntry objDEntry = new DirectoryEntry("LDAP://domain/DC=domain,DC=co,DC=in");
DirectorySearcher objDSearch = new DirectorySearcher(objDEntry);
string username = Session ["Name"].ToString ();
MsgBox3.alert(username);
objDSearch.Filter="(&(objectClass=user)(l=" + username + "))";
//string email;
//SearchResult sResultSet=null;
objDSearch.PropertiesToLoad.Add("cn");
MailMessage objEmail = new MailMessage();
MsgBox3.alert("good");
SearchResult sResultSet=objDSearch.FindOne(); [here is where the exception comes]
-------
System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindOne()
----------

Kindly help me out regarding this

Smith

-- modified at 4:49 Thursday 6th July, 2006
AnswerRe: Problem in retrieving the email id from active directory Pin
Paddy Boyd6-Jul-06 0:21
Paddy Boyd6-Jul-06 0:21 
Questionexport my site to a web server Pin
y_mmohd5-Jul-06 22:09
y_mmohd5-Jul-06 22:09 
Questionserver.transfer vs response.redirect Pin
lavanya_satheesh5-Jul-06 22:05
lavanya_satheesh5-Jul-06 22:05 
AnswerRe: server.transfer vs response.redirect Pin
_AK_5-Jul-06 22:10
_AK_5-Jul-06 22:10 
AnswerRe: server.transfer vs response.redirect Pin
Tirthadip5-Jul-06 22:16
Tirthadip5-Jul-06 22:16 
AnswerRe: server.transfer vs response.redirect Pin
Vipin Venugopal5-Jul-06 22:44
Vipin Venugopal5-Jul-06 22:44 
QuestionCan we bind datareader to textboxes? Pin
lavanya_satheesh5-Jul-06 22:03
lavanya_satheesh5-Jul-06 22:03 
AnswerRe: Can we bind datareader to textboxes? Pin
Tirthadip5-Jul-06 22:37
Tirthadip5-Jul-06 22:37 
AnswerRe: Can we bind datareader to textboxes? Pin
mnaveed5-Jul-06 22:37
mnaveed5-Jul-06 22:37 
GeneralRe: Can we bind datareader to textboxes? Pin
Tirthadip5-Jul-06 23:25
Tirthadip5-Jul-06 23:25 
GeneralRe: Can we bind datareader to textboxes? Pin
mnaveed5-Jul-06 23:38
mnaveed5-Jul-06 23:38 
GeneralRe: Can we bind datareader to textboxes? Pin
Tirthadip5-Jul-06 23:50
Tirthadip5-Jul-06 23:50 
GeneralRe: Can we bind datareader to textboxes? Pin
mnaveed6-Jul-06 1:08
mnaveed6-Jul-06 1:08 
QuestionHow can we use DataViewManager to bind data to a datagrid in asp.net? Pin
lavanya_satheesh5-Jul-06 22:00
lavanya_satheesh5-Jul-06 22:00 
AnswerRe: How can we use DataViewManager to bind data to a datagrid in asp.net? Pin
mnaveed5-Jul-06 22:35
mnaveed5-Jul-06 22:35 
GeneralRe: How can we use DataViewManager to bind data to a datagrid in asp.net? Pin
lavanya_satheesh7-Jul-06 20:29
lavanya_satheesh7-Jul-06 20:29 
Questioncatching return value from javascript function in asp.net code behind Pin
sandeep kumar pundhir5-Jul-06 21:39
sandeep kumar pundhir5-Jul-06 21:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.