Try using DirectorySearcher class.
mgr_2k7
Posts
-
DomainController() is inaccessible due to its protection level?? -
Installation FailureDoes your hardware configuration matches the one needed for the installation of Database Server?
-
Creation of a site collection in MOSS 2007 using C#.NET 2008 [modified]I created a site collection in a Web Application using the following code snippet in a Console Application: ============================================================================ SPWebApplication webApp = SPWebApplication.Lookup(new Uri("http://devportal.domain.local")); webApp.Sites.Add( "/", // site URL "testsite", // site title "Test Site Description", // site description 1033, // site LCID that represents the language, e.g. 1033 = en-US "STS#0", // site template, e.g. STS#0 = Team Site @"localdomain\my_alias", // site owner login "Test Owner", // site owner name "abc@def.com"); // email Console.WriteLine("Site Created"); Console.ReadLine(); ============================================================================ However, I am not able to view the same? How should I view it?
modified on Tuesday, October 20, 2009 8:33 AM
-
Data RetrievalI have a problem of trying to find the query for finding invalid dates in my table which does not follow the following formats. Given are the valid formats: 1. 10/1/2007 2. Thu Sep 20 06:32:10 GMT-0400 (EDT) 2007 3. 10/1/2007 5:00 Can anybody please help me regarding this? Thanks in advance. :)
-
Need to show a progressbar updateTried a lot but dunno how to make the tick of the timer call once the stored procedure has started to execute? Can anybody help me? I am awfully stuck. Seems a bit foolish to ask but u can consider me a layman when it comes to AJAX.
-
Need to show a progressbar updateHi Christian, I'm a bit novice with AJAX. Can you plz guide me through it? I have no idea how to make these things work with AJAX. Gimme a snippet I can work from? Thanks a lot.
-
Need to show a progressbar updateHi Friends, My requirement is something like this. I have a button in my page which invokes a Stored Procedure in the back end. The Stored Procedure is a huge one and takes a whole 3-4 mins to run. What I want is to show that progress in a progressbar in the front end. I can calculate the percentage that has to be shown there, the question is how to make it work? I tried using a TimerControl tool and wrote codes in its Tick event, but as soon as the Stored Procedure starts running, the control is lost and the tick event is not invoked. Can anyone plz help me? In a sorry state right now, trying to find the solution. Thanx 2 all in advance.
-
How to get the last selected item from a multiple dropdownlist with javascript? [modified]--Find the object in the form var ddlObj = document.getElementById('ddlName'); --Find the selected Index alert(ddlObj.selectedIndex);
-
Unable to Open Office Docs from IISThis is the sample code I used..... Word.ApplicationClass oWordApp = new Word.ApplicationClass(); oWordApp.Visible = true; Word.Document oWordDoc = oWordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing, ref missing); oWordDoc.Activate(); Can u plz help me?
-
Unable to Open Office Docs from IISHi All, Stuck in a weird position. I have written a code which lists the various documents in a folder. As soon as I click on the names of the documents they open up as they are. Word files in Microsoft Word, Excel in Excel etc...... The functionality works absolutely fine as long as I am debugging. As soon as I fire the same Application from IIS 5.1, the listing is proper, but on the click of the names nothing happens. I have even checked the taskmgr and can c the respective processes like WINWORD.EXE, EXCEL.EXE running, but I cannot c the docs. Can u guys help me plz?
-
Opening DocumentsHi All, Stuck in a weird position. I have written a code which lists the various documents in a folder. As soon as I click on the names of the documents they open up as they are. Word files in Microsoft Word, Excel in Excel etc...... The functionality works absolutely fine as long as I am debugging. As soon as I fire the same Application from IIS 5.1, the listing is proper, but on the click of the names nothing happens. I have even checked the taskmgr and can c the respective processes like WINWORD.EXE, EXCEL.EXE running, but I cannot c the docs. Can u guys help me plz? :(( :sigh:
-
Open Powerpoint presentationThanks a lot guys. U all were a lot of help. Finally got it. ;P
-
Open Office documentsCan any body post an article for opening Word, Excel, Presentations using C#. If possible include PDF as well. Thanks a lot. :laugh:
-
Open Powerpoint presentationHow do i open a Powerpoint presentation 2003 using C#.NET 2.0. Please guys, I need the sample code. Can anybody help me?
-
Textboxes not having Autocomplete featureI want the autocomplete feature on for all of them. ;)
-
Autocomplete textbox not workingHi All, Absurd problem really. We have created a web application. In some pages the autocomplete feature of the textboxes occur, while in the ones having tabstrip control the feature does not show up. What can I do to get rid of the problem? Can anybody help me. TX In Advance. Manish.
-
Textboxes not having Autocomplete featureHi All, Absurd problem really. We have created a web application. In some pages the autocomplete feature of the textboxes occur, while in the ones having tabstrip control the feature does not show up. What can I do to get rid of the problem? Can anybody help me. TX In Advance. Manish. :(
-
Fetching rows in cursorsI am extremely sorry if u have mistook my All Caps as being angry. I was coding the Stored Proc at that time......and as per company standards I had to keep it in All Caps. I am sorry , I forgot to switch it off while typing my problem. Anyways Guys, Cheerz. We have found a roundabout way of handling it. While checking the "select" query was imposing a big chunk, so we have decided to design a tertiary table and use it directly to fetch the records from them. This improved my time around 45%. What intially took us 2:30 hrs to implement 10 lakh records, is now taking us 1:20 hrs. Tx guys for all the help u have provided. :-D ;) Manish Ganguly.
-
Fetching rows in cursorsHI CS, I GOT WHAT U SAID. THIS IS MY SCENARIO: 1. PICK UP DATA FROM A TEMPORARY TABLE ROW BY ROW......VALIDATE WHETHER THEY FOLLOW BUSINESS LOGIC OR NOT. 2. IF THE DATA IS ERRONEOUS UPDATE A FLAG IN THE SAME TABLE TO F, ELSE UPDATE IT TO P. Manish Ganguly
-
Fetching rows in cursorsCan anybody guide me as to how do we call a cursor having rows more than 10000? :( Manish Ganguly