Please refer below code.
HTML
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
Name :
</td>
<td>
<asp:TextBox ID="txtName" runat="server" />
</td>
</tr>
<tr>
<td>
Address :
</td>
<td>
<asp:TextBox ID="txtAddress" runat="server" />
</td>
</tr>
<tr>
<td>
<asp:Button ID="btnSave" Text="Save" runat="server" OnClick="Save" />
</td>
<td>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" OnClick="Cancel" Visible="false" />
</td>
</tr>
</table>
</div>
Code
protected void Save(object sender, EventArgs e)
{
//Write code to save data.
btnSave.Visible = false;
btnCancel.Visible = true;
}
protected void Cancel(object sender, EventArgs e)
{
txtName.Text = string.Empty;
txtAddress.Text = string.Empty;
btnSave.Visible = true;
btnCancel.Visible = false;
// If You have only save and cancel button event then write below code instead of above code.
//Response.Redirect(Request.Url.AbsoluteUri);
}
Screenshot