T
Tom
Hi
I have a method which insert data to DB. The data can be
inserted. However, it returns to the login.aspx everytime.
There is an exception to be thrown. But, I do not know
what is the exception? How can I show it? The following is
my code.
try
{
objOperator.Insert(this.UserName.Text,this.Password.Text);
}
catch(Exception)
{
Response.Redirect("/login.aspx",true);
}
Response.Redirect("/index.aspx",true);
Thanks
I have a method which insert data to DB. The data can be
inserted. However, it returns to the login.aspx everytime.
There is an exception to be thrown. But, I do not know
what is the exception? How can I show it? The following is
my code.
try
{
objOperator.Insert(this.UserName.Text,this.Password.Text);
}
catch(Exception)
{
Response.Redirect("/login.aspx",true);
}
Response.Redirect("/index.aspx",true);
Thanks