Skip to Content
0
Former Member
Jan 03, 2008 at 06:48 AM

fistname from npuser

34 Views

Hi i try to get first name from the npuser class but it shows the error OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OJECT below i have attached the code.,pls guide me

NPBasePage bp = new NPBasePage();

NPUser nc = new NPUser(bp.UserID);

((TextBox)this.FindControl("TextBox1")).Text = nc.FirstName;

Regards

Kannan.D