How to make a .NET MVC Form inside a Modal using jQuery with validation

前端 未结 3 806
感情败类
感情败类 2020-12-07 16:47

I am really struggling with knowing how to put this all together. I\'ve built forms inside .net MVC pages plenty of times, with and without validation. And I\'ve built for

3条回答
  •  一生所求
    2020-12-07 17:40

    Consider put an iframe inside the modal div, instead of rendering partialView, this way you can develop the modal section the same way you develop simple pages, which submit, model, required etc...

    this way: