Session.Add("username", txtStaffname.Text);
Session.Add("Staffid", Staffid);
FormsAuthentication.RedirectFromLoginPage
(txtStaffname.Text, false);
After successfull login i redirect to site.master page.
when i redirect i get the following error.. please explain me
Cannot find ContentPlaceHolder 'MainContent' in the master page '/Site.master', verify content control's ContentPlaceHolderID attribute in the content page.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Cannot find ContentPlaceHolder 'MainContent' in the master page '/Site.master', verify content control's Content ...
Go to the complete details ...