have a c# webform that has two buttons that can edit the fields of the form. An edit button once clicked needs to enable all the fields of the document to be updated and display a save button. I have the save button not visible but cant figure out how to make it visible once the saved button is clicked also how do I disable all the field so their not edittable until the edit button is clicked.
this is what I have tried for the button click visibile:
<script type="text/javascript">
function script1() {
Button2.onclientclick = (Button3.Visible = true);
}
</script>
<asp:Button ID="Button2" runat="server" Height="24px"
Text="Edit" Width="67px" onclientclick="script1()"/>
also:
protected void Button2_Click(object sender, EventArgs e)
{
Button3.Visible = true;
}
Add to your button delegate in side server