0

if (chk > 0) { ClientScript.RegisterStartupScript(GetType(), "hwa", Confirm('Want to Save?');", true);

// 我希望这条线以下的部分受到确认确定或取消的限制..

string qry = "插入用户IP值('" + TextBox2.Text + "'," + ddluid.Text + ")"; SqlCommand insert = new SqlCommand(qry, con); con.Open(); insert.ExecuteNonQuery(); con.Close(); TabContainer1.ActiveTabIndex = 1; }

// //如果是/确定单击段运行其他...返回表单返回。

4

1 回答 1

0

看看这里http://forums.asp.net/t/963412.aspx asp:Button Validation with OnClientClick

于 2012-07-13T08:14:46.173 回答