.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Writing a Telephone Book / Corporate Phone Directory...

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :ASP.Net
Hey everyone, I'm attempting to write one aspx page (vb.net back end) that pulls the following using an LDAP query from my active directory and dumps it into either a datagrid or a gridview control.  The fields I want to show from Active directory are;  1. Last Name 2. First Name 3. Office 4. Email 5. Telephone number (primary) 6. Mobile  7. Title 8. Department 9. Company ---- I only want to show the "active" users and then again, dump the results in a dataset and populate a datagrid / gridview control.  Does anyone have any sample code of this or can walk me through on how to do this - thanks in advance... Best regards, Ryan  

View Complete Post

More Related Resource Links

Building a Searchable Phone Directory with Windows SharePoint Services

I want to continue to build out the intranet site we've started in our previous articles. A standard item in every intranet is a staff/employee list. Most companies implementing Windows SharePoint Services (WSS) are large enough to have a database that contains all employees. We will use the aggregation features of SharePoint to include data from this database into our intranet.

Writing File in Oracle to Secured Directory on NAS Server


I have a stored procedure that creates a comma delimited file. I can easily write to a directory on the database server, but I would like to write the file to a mapped network directory on a NAS server. The issue, at least conceptually (sorry for being a novice here), is that I have no way of accessing or embedding the necessary username/password to write to the specified directory.

Based on initial research, it looks like the oracle account is the one writing the file. Would that mean that the oracle account would have to have the appropriate privileges to the NAS directory? Who would that oracle user be? The niku account user being used to execute the proc?

Kind of lost here. Would like to send directly to the NAS to avoid an SFTP to another environment.

error writing to directory in impersonated MVC APP


Hi All 


I have an MVC app that produces a PDF  on a button click impersonation is turned on and the account that is impersonating is a domain account with full rights to the   C:\Users\TEMP.IIS APPPOOL\ directory and everything under it. Any idea why I can write to that directory?




Server Error in '/GPOS' Application.

Access to the path 'C:\Users\TEMP.IIS APPPOOL\AppData\Local\Temp\temp_496f2b08-7f40-4d5a-96d3-80e228fb2b24.rpt' is denied.

The Phone Book Analogy for an Index


I like to use the Phone Book analogy (with some modification) when trying to understand what an Index is. Please comment or expand on the following analogies.

(1) Heap Analogy: If a table has no clustered index then it is a heap. That is like a world that has no phone book. There is information out there about names, addresses, and phone numbers, but it is not organized. So, if someone asks you to retrieve phone numbers for everyone with a certain last name, you would need to visit all the homes out there, collect the info and filter it down. That is like a table scan.

(2) Clustered Index Analogy: However, once you compile a phone book, then that's like building a clustered index on a table. It is organized by last name followed by first name. Now if someone asks you to retrieve phone numbers for people with a certain last name, you don't need to visit all the homes. You just look up by the last name and all the info you want is found on in the phone book. That is a clustered index seek. Next, let's say someone asks for all phone numbers in a certain state. We can still use the phone book, but we will have to go through all the entries in it row by row. This is a clustered index scan. But at least we didn't have to visit all the homes ou

XML Sample phone directory according to initials



I would like to implement a sample XML something like below but It should be grouped by FirstName or LastName.  How can I do it?


BEst regards.


<?xml version="1.0"?>

Writing custom MembershipProvider

ASP.NET Membership mechanism allows to use the build-in server tables to store and retrieve user data. By default, this mechanism can only be used with SQL Server database to which Microsoft provides suitable MembershipProvider class.
Inheriting from this abstract class, developer can use his own table(-es) from any database and use any database engine other than SQL Server, like Oracle, DB2 etc.

10 Tips for Writing High-Performance Web Applications

Writing a Web application with ASP.NET is unbelievably easy. So easy, many developers don't take the time to structure their applications for great performance. In this article, I'm going to present 10 tips for writing high-performance Web apps. I'm not limiting my comments to ASP.NET applications because they are just one subset of Web applications. This article won't be the definitive guide for performance-tuning Web applications-an entire book could easily be devoted to that. Instead, think of this as a good place to start.

Writing Custom Web Parts for SharePoint 2007

As I mentioned in an earlier blog post, SharePoint 2007 is built on top of ASP.NET 2.0, which means you can now use ASP.NET 2.0 features (Forms Authentication, Master Pages, Membership, Site Navigation, New Data Controls, etc) when building SharePoint sites. This is true for both the new Windows SharePoint Services 3.0 version (which will be a free download) as well as Microsoft Office SharePoint Server 2007 (which costs money).

Reading and Writing Images From a Windows Mobile Database using UltraLite 10(C#)

Periodically I get a request for information on how to read and write binary data to a database running on Windows Mobile. If you search the Internet you can typically find examples that are available on Windows Desktops or allow you to read and write to a local file system. The problem is that it can take a bit of work to get this code to work on Windows Mobile accessing a database.

Ultimately you might be asking, why would I want to store and image in a database? Well in an environment where you synchronizing data between a local mobile database and a consolidated (central) database this can be extremely useful. Imagine if an insurance adjuster went to an accident scene, took a picture of a damaged car, loaded it into his Windows Mobile database and then replicated that image up to the Insurance headquarters for approval. All of this could be done in a very short period of time when using images in the database. Another good example might be a doctor who was waiting for a patient chart to become available. If you could store the image in a database this chart could be sent down to the doctor's device once it became available.

For this article I am not going to get into how to synchronize the images to and from a remote and central database as this is typically fairly straightforward when using a data synchronization technologies like MobiLink

Use a Windows Mobile Phone as a Bluetooth Modem

Many Windows Mobile Pocket PC Phones and Windows Mobile Smartphones can be connected to a Windows PC via Bluetooth for use as a wireless dial-up modem. If your Windows Mobile device supports Bluetooth Dial-Up Networking, or Bluetooth DUN, and your Windows PC Bluetooth-enabled, you have everything you need.

In this tutorial, we'll show you how to use Windows Mobile Pocket PC Phones or Smartphones as a Bluetooth modem for Windows XP PCs.

XML Reading and Writing

We learned to process XML files using the Document Object Model as implemented by the XmlDocument class. To go further and make XML friendlier, the .NET Framework provides many other classes for different purposes, allowing you to create and manage nodes from custom .NET classes.
Besides the XmlDocument and the derived classes of XmlNode, the .NET Framework provides the XmlTextWriter class, which is derived from XmlWriter. The XmlTextWriter class works in a top-down approach to create, or deal with, the contents of an XML file. This class writes an XML node and moves down without referring

Writing Http Handlers and Modules in IIS 7.5

This article describes how Http modules and handlers are to be written and configured in IIS 7.5. The concept of a handler and module remains same, so dose there programming model. In this section we start off with the concept of a Http module and a Http handler, then talk about how to code them and finally describe the two methods available to configure them.

Beginner's book for ado.net 2.0



Can anyone suggest me a book for beginners in ADO.NET 2.0 ? 

Difference Btw Website vs Web application and Virtual directory in IIS 7


May i know what is the Differenc that they actually make in IIS7 .

Please tell me at a low level as i am still a novice in Asp.Net


Thanks in Advance.


Browsing all Images in Directory ... ?! asp.net & C#


Hi every one ... How are you ??

OK ... I want to make album ... I try to make it using buttons( next & pre ) using imageButton control and variable (i)

So ... each next (++i) & pre ( --i) to show allimages in directory ("photo")

Here my code in C#  ::

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.IO;
using System.Collections.Generic;

namespace iThinkerWebSite
    public partial class photos : System.Web.UI.Page

       // LinkedList<string> names = admin.getNames();
        DirectoryInfo dir;
        FileInfo[] files;
        static int i = -1;
        static int l = 0;

        protected void Page_Load(object sender, EventArgs e)
            dir = new DirectoryInfo(MapPath("photo"));
            files = dir.GetFiles();
            //l = (int)names.LongCount();
            l = files.Length;
            if (l == 0)
                Label2.Text = "No Photo to Display !!";
            Image2.ImageUrl = "images/ith.png";

file upload in chunks or not buffering in memory before writing to disk?


What are the options for handling file uploads to reduce the memory footprint?  Is there a way to upload in chunks?  Is there a way to stream upload directly to disk instead of loading entire file in server memory?


Writing codes using three tier architecture.


Hello all.

I am a beginner in c#.I heard that writing program with three tier architecture are easy and maintainable.

I just wanted to know with a small example on how to write three tier architecture programs.

Thanks :-)

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend