I am logging in windows authentication mode as admin and retrieving details of all user, and then when retrieving the details of a single user, I am geting the following exception at Line 198.
System.NullReferenceException: Object reference not set to an instance of an object.
Source Error...
am geting the following exception
: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 196: internal static string GetProperty(DirectoryEntry oDE, string PropertyName)
Line 197: {
Line 198: if...
The datatable is in .cs file and the gridview is being binded in the default.aspx.cs in the PageLoad
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using...
The dt is being populated , column headers are displayed absolutely no problem, but the values are not diplayed.I dont know if anything else to be done for the values to be appended to the datarow.
Hello,
I am tyring to retrieve data from Active Directory and dipalying in a datatable and adding it to the GridView.
The Datatable is added to the gridview but the values r not dipalyed.
Below is the code could anyone trace out the problem and solve the problem.
public DataTable GetUsers()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.