Posted on: 7/21/2015 6:25:05 AM | Views : 822

Hi i am new to c#...i am still learning...i am stuck with this since last two days..but could find the solution after tons of debuggin..in my page when i click the button
END DAY OPERATION it throws nullReferenceException..
C# code
protected void EndDayOperationButton_Click(object sender, EventArgs e) { var date = Conversion.TryCastDate(BodEngDateTextBox.Text); var userId = UserId; var isAdmin = Common.Helpers.SessionHelper.IsAdmin(); if (!isAdmin) { ReturnButton.Visible = true; EndDayOperationButton.Visible = true; ShowFailModal("< b > Authorization Failed!</ b > < br /> Contact your system admin to perform day operation."); return; } if (!BusinessLayer.Security.Login.IsBoDStarted(date)) { Response. ...

Go to the complete details ...