Dear Programer,
<script type="text/javascript">
//write code for reset form after submit
</script>
html code -
<asp:Button ID="btnsave" runat="server" Text="Submit" CssClass="Button" OnClick="btnsave_Click" />
code behind -
protected void btnsave_Click(object sender, System.EventArgs e)
{
//connectionstrings
cnn.Open();
//insert command
cmd.ExecuteNonQuery();
{
string script = @"<script language = ""javascript"">
alert('Dear Student Your Query has been Sent to ECC.');
</script>;";
Page.ClientScript.RegisterStartupScript(this.GetType(), "myJScript1", script);
}
}