Skip to content

I cant use jCryption #2

@leventozz

Description

@leventozz

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>
> } 
> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions