时间:2021-07-01 10:21:17 帮助过:41人阅读
namespace ValidatorTest
{
public partial class Default : <SPAN style="COLOR: #ff00ff">WebApp.BasePage</SPAN>
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
string url = Request.Url.LocalPath;
if (!Page.IsValid)
{
StringUtil.JAlertToRedirect("非法提交!", url);
return;
}
StringUtil.JAlertToRedirect("感谢您的测试!", url);
}
}
}
例子下载