koushiksaha wrote:
Can anyone suggest me how to write the confirm box in code behind
Same way that your are doing using
JavaScript
.
But Register that function from codbehind using
ClientScript.RegisterStartupScript(this.GetType(), "Confirm",<br />"<script>Confirm('" + Are You Sure ?+ "');</script>");<br />
or if use ajax in your page then
ScriptManager
instate of ClientScript