how to get Confirmation and form submit or Abort in code behind.. here i used Code below
<p>if (chk > 0)
 {
ClientScript.RegisterStartupScript(GetType(), "hwa", Confirm('Want to Save?');", true);  </p>

<p><strong>// I want Section Below this Line Restricted by Confirmation Ok or Cancel..</strong>    </p>

<p>string qry = "insert into userip values('" + TextBox2.Text + "'," + ddluid.Text + ")";
SqlCommand insert = new SqlCommand(qry, con); con.Open(); insert.ExecuteNonQuery(); con.Close(); TabContainer1.ActiveTabIndex = 1;
 }</p>

<p>//
//If Yes/OK clicked Segment run Else... Return to Form back.</p>
