Hi,
In my page I have a formView with <ItemTemplate>, <EditItemTemplate> and <InsertItemTemplate>. In the <ItemTemplate> I have a linkButton "Edit" that, when clicked by the user, should show the FormView in Edit Mode. I have the following:
<asp:LinkButton ID="EditLinkButton" Text="Edit" OnClick="EditLinkButton_Click" runat="server" />
And in the code behind:
Protected Sub EditLinkButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
myFormView.ChangeMode(FormViewMode.Edit)
End Sub
Using the debug, I see that the EditLinkButton_Click is called and executed normally. However, the FormView mode is not changed. Any ideas why?
Thanks,
Ana