0
我正在开发一个遵循3层架构的web应用程序。当我点击提交按钮时数据存储在数据库中,但没有显示响应消息,如“记录提交成功”,字段不是令人耳目一新。这里是我的代码:提交后刷新页面需要帮助
protected void BtnSubmit_Click(object sender, EventArgs e)
{
if (!Page.IsValid)
return;
NewuserBAL NUB = new NewuserBAL();
string UserName = TxtUserName.Text;
string Password = PWD.Text;
string EmailId = Email.Text;
try
{
NUB.newinsert(UserName, Password, EmailId);
Response.Write("<b>New User Created Successfully</b>");
TxtUserName.Text = "";
PWD.Text = "";
CnfrmPwd.Text = "";
Email.Text = "";
}
catch
{
throw;
}
finally
{
NUB = null;
}
}
感谢, Masum
谢谢先生.........它现在工作的很好。 – 2009-01-25 06:31:00