Click here to Skip to main content
12,748,323 members (42,123 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# Ajax jQuery MVC3
Hi all,

I am doing mvc3 razor application for this i want to display popup for signin page but i am getting errors ml controller is:
       public ActionResult SigningIn()
           if (Request.IsAjaxRequest())
               return PartialView("_PartialSigningIn");
           return View();
       public ActionResult SigningIn(Account account3)
           if (!ModelState.IsValid)
               if (Request.IsAjaxRequest())
                   return PartialView("_PartialSigningIn",account3);
           return View(account3);

and my view Is:
@model GoGrain.Models.Account


and partialview is:

<pre lang="sql">@model GoGrain.Models.Account

@using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "signinginDialog" }))

and jquery is:

<script type="text/javascript">

    $.ajaxSetup({ cache: false });

    $(document).ready(function () {
        $(".openDialog").live("click", function (e) {

                .attr("id", $(this)
                    title: $(this).attr("data-dialog-title"),
                    close: function () { $(this).remove() },
                    modal: true

        $(".close").live("click", function (e) {
Posted 8-Jan-13 1:53am
Sandeep Mewara 8-Jan-13 8:50am
What error?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100