Hi...
 
my declaration---
newCR.InCharge = new InChargePerson { ReceiveBy = new Staff { UserID = "ADMIN" } };
then i pass it to another function---
db.Add_CRList(newCR);
 
then at function Add_CRList(using store proc) i try retrieve back my value like this---
public void Add_CRList(ChangeRequest CR)
{
       ..........
       cmd.Parameters.AddWithValue("@ReceiveBy", CR.InCharge.ReceiveBy.UserID);
}
 
then error came out:- Object reference not set to an instance of an object. anyone can help me?:)
 
...

Go to the complete details ...