After clicking on the "Save" button only the "Update" Button will show. How do I do it on the form?
<tr><td>
<div runat="server" id="PrimaryBtnWrapper" class="btn-wrapper">
<telerik:RadButton RenderMode="Lightweight" ID="btnSave" runat="server" Skin="Silk" OnClick="btnSave_Click" Primary="true"
Text=" Save " GroupName="GroupName1">
</telerik:RadButton>
</div>
</td>
<td>
<div runat="server" id="PrimaryBtnWrapper1" class="btn-wrapper">
<telerik:RadButton RenderMode="Lightweight" ID="btnUpdate" runat="server" Skin="Office2007" OnClick="btnUpdate_Click" Primary="true"
Text=" UPDATE " GroupName="GroupName1">
</telerik:RadButton>
</div>
</td>
</tr>
From the .cs file, I create a method that checks if all the condition is true and then shows the 'save' button. if all the condition is false then show the 'update' button. And I call it Post back method.
protected void ButtonCheck(){
if (txtAddress.Text != "" && txtEdu.Text != "" && txtContact.Text != "" && txtemail.Text != "")
{
btnSave.Style["display"] = "none";
}
else if (txtAddress.Text == "" && txtEdu.Text == "" && txtContact.Text == "" && txtemail.Text == "")
{
btnUpdate.Style["display"] = "none";
}
}