So the issue was that the Insert LinkButton
in Insert.aspx was not rendered when the primary key was a string (and consequently not auto-generated) (the same issue occurred in with the Edit LinkButton
in Edit.aspx).
I tried changing the StoredGeneratedPattern
in the EDMX designer with no luck.
At the end, this did for me - open Insert.aspx and locate these two LinkButtons
:
<asp:LinkButton runat="server" CommandName="Update" Text="Update" CssClass="button" />
<asp:LinkButton runat="server" CommandName="Cancel" Text="Cancel" CausesValidation="false" CssClass="button" />
Simply replace the LinkButtons
to just Buttons
. Make sure to validate that the entered primary key is not already in the database. Thank you.