Click here to Skip to main content
15,915,160 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow do I get the value from a particular cell in the gridview? Pin
blurMember22-Jan-07 1:07
blurMember22-Jan-07 1:07 
AnswerRe: How do I get the value from a particular cell in the gridview? Pin
Dayekh22-Jan-07 4:48
Dayekh22-Jan-07 4:48 
QuestionERROR :Threading was being aborted. Pin
mohd imran abdul aziz22-Jan-07 0:16
mohd imran abdul aziz22-Jan-07 0:16 
AnswerRe: ERROR :Threading was being aborted. Pin
PSK_22-Jan-07 0:46
PSK_22-Jan-07 0:46 
AnswerRe: ERROR :Threading was being aborted. Pin
Jon Sagara22-Jan-07 6:27
Jon Sagara22-Jan-07 6:27 
QuestionRepeater Control VS 2003 VS VS 2005 Pin
just3ala221-Jan-07 23:56
just3ala221-Jan-07 23:56 
AnswerRe: Repeater Control VS 2003 VS VS 2005 Pin
just3ala222-Jan-07 0:11
just3ala222-Jan-07 0:11 
QuestionActive Directory and LDAP Pin
aaraaayen21-Jan-07 23:50
aaraaayen21-Jan-07 23:50 
Hi,

I am using LDAP to add users into Active directory. But even if i add same email id's for different users its accepting. but i have to avoid that. It should not accept same emailid for different users. Please help me how to validate this.

Code using to add users:

public bool AddEmployee(string Path, string employeeId, string employeeName, string newFirstName, string newLastName, string password, string designation, string mobilePhone, string officeEmail, string personalEmail, string reportTo, string newEmpStreet, string newEmpCity,string newEmpCountry, string newEmpPinCode, string dateOfJoin,string personalPhone)
{
DirectoryEntry oContainer, oNewUser;
try
{
//Bind to the parent container
oContainer = new DirectoryEntry(Path);
//add this to ads
// oNewUser = oContainer.Children.Add("CN=" + strFirstName + " " + strLastName, "user");
// oNewUser = oContainer.Children.Add("CN=" + employeeName + " " + employeeName, "user");
oNewUser = oContainer.Children.Add("CN=" + newFirstName + " " + newLastName, "user");
//SAMAccountName is required!

oNewUser.Properties["sAMAccountName"].Add(employeeName);

oNewUser.Properties["sn"].Add(newLastName);

oNewUser.Properties["givenName"].Add(newFirstName);
// oNewUser.Properties["initials"].Value = "T";
oNewUser.Properties["description"].Value = employeeId;
oNewUser.Properties["title"].Value = designation;// "sample-Operation";
oNewUser.Properties["physicalDeliveryOfficeName"].Value = "40/5802";
oNewUser.Properties["telephoneNumber"].Value = mobilePhone;// "(425)222-9999";
oNewUser.Properties["mail"].Value = officeEmail;// "vts@vts.com";
// oNewUser.Properties["Manager"].Value = reportTo;
oNewUser.Properties["mobile"].Value = personalPhone;// "";
oNewUser.Properties["streetAddress"].Value = newEmpStreet;// "4 th street";
oNewUser.Properties["postOfficeBox"].Value = newEmpStreet;// "dd-12";
oNewUser.Properties["l"].Value = newEmpCity;// "thennur";
// oNewUser.Properties["st"].Value = "trichy";
oNewUser.Properties["postalCode"].Value = newEmpPinCode;// "620017";
oNewUser.Properties["c"].Value = newEmpCountry;// "IN";
oNewUser.Properties["url"].Value = personalEmail;

oNewUser.Properties["pager"].Value = dateOfJoin;
//This will enable the account:

oNewUser.Properties["userAccountControl"].Add(544);//544
//Save the Changes
oNewUser.CommitChanges();
//Set Password
oNewUser.Invoke("SetPassword", new string[] { password });




return true;

}

Thanks in Advance,

Regards,


Prya

QuestionHow set edit the cell in GridView Pin
slSoftware21-Jan-07 23:19
slSoftware21-Jan-07 23:19 
Questionserver side and client side Pin
ravikiranreddydharmannagari21-Jan-07 23:15
ravikiranreddydharmannagari21-Jan-07 23:15 
AnswerRe: server side and client side Pin
Guffa22-Jan-07 0:30
Guffa22-Jan-07 0:30 
QuestionOpen New Page Pin
Mohammed Elkholy21-Jan-07 23:11
Mohammed Elkholy21-Jan-07 23:11 
AnswerRe: Open New Page Pin
enjoycrack21-Jan-07 23:31
enjoycrack21-Jan-07 23:31 
GeneralRe: Open New Page Pin
Mohammed Elkholy22-Jan-07 1:06
Mohammed Elkholy22-Jan-07 1:06 
GeneralRe: Open New Page Pin
DavidNohejl22-Jan-07 2:00
DavidNohejl22-Jan-07 2:00 
QuestionSetting mouse over & mouse out event for each item in a DropDownList in asp.net Pin
248912821-Jan-07 23:05
248912821-Jan-07 23:05 
QuestionCalender control validation in javascript Pin
VaibhavTiparadi21-Jan-07 22:43
VaibhavTiparadi21-Jan-07 22:43 
QuestionAttaching Crystal Report Data as an attachment to the SMTP Mail Pin
Vijay_Patil21-Jan-07 21:22
Vijay_Patil21-Jan-07 21:22 
QuestionDatatables Pin
chohanpk21-Jan-07 20:36
chohanpk21-Jan-07 20:36 
AnswerRe: Datatables Pin
Jon Sagara21-Jan-07 20:43
Jon Sagara21-Jan-07 20:43 
GeneralRe: Datatables Pin
chohanpk21-Jan-07 20:46
chohanpk21-Jan-07 20:46 
GeneralRe: Datatables Pin
enjoycrack21-Jan-07 20:55
enjoycrack21-Jan-07 20:55 
GeneralRe: Datatables Pin
chohanpk21-Jan-07 21:01
chohanpk21-Jan-07 21:01 
GeneralRe: Datatables Pin
enjoycrack21-Jan-07 21:15
enjoycrack21-Jan-07 21:15 
GeneralRe: Datatables Pin
Christian Graus21-Jan-07 21:50
protectorChristian Graus21-Jan-07 21:50 

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.