日期:2014-05-17 浏览次数:20659 次
protected void Button1_Click(object sender, EventArgs e) {
//Not required since the CausesValidation property of the Button control is true by default.
//Page.Validate("MyValidationGroup");
//Proceed only if the vaidation is successfull
if (!Page.IsValid) {
return;
}
//Insert data into SQL
}