May 10, 2018, 4:42 PM
Antiforgery token Ext.net Mvc 4.5
Hey Guys
How to add Antiforgery token to this form , tried adding in content & Extra params didnt work
How to add Antiforgery token to this form , tried adding in content & Extra params didnt work
<ext:FormPanel ID="frmUserSettings" ItemID="frmUserSettings" runat="server" BodyPadding="5" AutoDataBind="true"
Layout="Form">
<Items>
<ext:TextField ItemID="txtFirstnameUser" ID="txtFirstnameUser" LabelWidth="110" runat="server" FieldLabel="First Name" Width="300" AllowBlank="false" LabelAlign="Right" MaskRe="[A-Za-z0-9]">
</ext:TextField>
<ext:TextField ItemID="txtLastnameUser" ID="txtLastnameUser" LabelWidth="110" runat="server" FieldLabel="Last Name" Width="300" AllowBlank="false" LabelAlign="Right" MaskRe="[A-Za-z0-9]">
</ext:TextField>
<ext:TextField ItemID="txtEmail" ID="txtEmail" LabelWidth="110" runat="server" FieldLabel="Email"
Width="300" AllowBlank="false" LabelAlign="Right" InputType="Email">
</ext:TextField>
<ext:TextField InputType="Password" ID="txtpass" ItemID="txtpass" LabelWidth="110" runat="server"
FieldLabel="Password" Width="300" LabelAlign="Right" MaskRe="[@^*.$_~!A-Za-z0-9]">
</ext:TextField>
</Items>
<Content>
<%#Html.AntiForgeryToken()%>
</Content>
<Buttons>
<ext:Button ID="btnSaveUser" ItemID="btnSaveUser" runat="server" Text="Update" Icon="UserEdit">
<DirectEvents>
<Click Url="/Users/Submit" CleanRequest="true" FormID="frmuserprof" >
<ExtraParams>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:FormPanel>