W
weird0
This error as pointed out earlier by one of the MVP's comes when
some value is being passed as null. But when i debug, i cant find out
which value is going null as there are hell lot of values. Cant really
check all of them. Only three of them get displayed in locals i.e. "
e,Sender and xxx".
Here is where the exception comes.....( PLease lemme know how can i
fix this bug?? Really stuck): The exception comes on the if statement.
if
(RegistrationManager.RegisterUser(Session["passwordtextbox"].ToString(),DateTime.Parse(Session["passlastchangedtemp"].ToString()),
Session["firstnametextbox"].ToString(),
Session["lastnametextbox"].ToString(),
Session["telnotextbox"].ToString(),
DateTime.Parse(Session["dob"].ToString()),
Session["addresstextbox"].ToString(),
accnametextbox.Text,accnotextbox.Text,pincodetextbox.Text,Session["usernametextbox"].ToString(),
Session["questtextbox"].ToString(),
Session["answertextbox"].ToString(),
Session["FileUpload1"].ToString(), Session["FileUpload2"].ToString(),
Session["FileUpload3"].ToString()) &&
RegistrationFormTable.InsertIntoAccounts(accnametextbox.Text,accnotextbox.Text,balancetextbox.Text,pincodetextbox.Text,branchtextbox.Text,System.DateTime.Now.ToString(),Session["CustomerId"].ToString())==true)
&& (RegistrationFormTable.Insert_ATM_Information(pincodetextbox.Text)
== true) &&
(RegistrationFormTable.Insert_CreditCard_Information(pincodetextbox.Text)
== true))
{
Alert.Show("You are registered successfully");
Response.Redirect("Login.aspx");
}
else
{
Alert.Show("You could not be registered");
}
some value is being passed as null. But when i debug, i cant find out
which value is going null as there are hell lot of values. Cant really
check all of them. Only three of them get displayed in locals i.e. "
e,Sender and xxx".
Here is where the exception comes.....( PLease lemme know how can i
fix this bug?? Really stuck): The exception comes on the if statement.
if
(RegistrationManager.RegisterUser(Session["passwordtextbox"].ToString(),DateTime.Parse(Session["passlastchangedtemp"].ToString()),
Session["firstnametextbox"].ToString(),
Session["lastnametextbox"].ToString(),
Session["telnotextbox"].ToString(),
DateTime.Parse(Session["dob"].ToString()),
Session["addresstextbox"].ToString(),
accnametextbox.Text,accnotextbox.Text,pincodetextbox.Text,Session["usernametextbox"].ToString(),
Session["questtextbox"].ToString(),
Session["answertextbox"].ToString(),
Session["FileUpload1"].ToString(), Session["FileUpload2"].ToString(),
Session["FileUpload3"].ToString()) &&
RegistrationFormTable.InsertIntoAccounts(accnametextbox.Text,accnotextbox.Text,balancetextbox.Text,pincodetextbox.Text,branchtextbox.Text,System.DateTime.Now.ToString(),Session["CustomerId"].ToString())==true)
&& (RegistrationFormTable.Insert_ATM_Information(pincodetextbox.Text)
== true) &&
(RegistrationFormTable.Insert_CreditCard_Information(pincodetextbox.Text)
== true))
{
Alert.Show("You are registered successfully");
Response.Redirect("Login.aspx");
}
else
{
Alert.Show("You could not be registered");
}