-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I wish make mvc project with jCryption. I've implemented everything written here:
https://github.com/JakeJP/jCryption.NET
and i looked this topic:
#1
But I still couldn't. I just getting a key. I can't get the model. Code is here:
Controller:
> [HttpPost]
> [AllowAnonymous]
> [jCryptionHandler]
> public ActionResult Index(StudentVM studentVM, string key)
> {
> return View();
> }
>
> [AllowAnonymous]
> [jCryptionHandler]
> public ActionResult Index()
> {
> return View();
> }
View:
> @using jCryption
> @{
> jCryption.HandleRequest(Request);
> }
> <head>
> <script type="text/javascript" src="https://github.com//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
> @section Scripts {
> @Scripts.Render("~/bundles/jqueryval")
> @jCryption.RenderScriptFor("form", src: "/Scripts/jquery.jcryption.3.1.0.mod.js")
> }
> </head>
> <br />
> <br />
> @using (Html.BeginForm("Index", "Home", FormMethod.Post))
> {
> <input type="text" name="Name" id="Name" />
> <input type="text" name="ID" id="ID" />
> <button type="submit">Send</button>
> }
>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels