I want to show view or partialview on dialog. There is an example in ASP.NET Mvc 4 default template (AjaxLogin.js). AjaxLogin.js catches if login is ajax. And runs jsonresult or actionresult. AjaxLogin control this with passing parameter to dialog. So passing parameter is important for me.
Is there a problem with my use of this library for my specified forms. Or is there another js library about this topic?
I m new about jquery ui. I m using AjaxLogin.js in my project now, for other forms. And they work. Should I continue to use.
Thanks.
You may use jQuery UI library for the dialog. It is simple as this
1) Add a reference to the jQuery UI library( Refer from the CDN/LocalCopy) in the page/layout
2)Add a specific class to the links so that we can use that as a jQuery selector
3) Bind the Diloag functionality to those links on the DOM ready event
Now clicking on the link will show the content of the result of
Details
action method ofCustomers
controller. ( you may change this according to your scenario)If you are comfortable with the functionality and it works for you, then go for it. I haven't used the ajaxlogin.js, so I can't comment directly on it, but I have used FancyBox as my modal dialog for displaying partial views with great success.