Solved

ajaxbeginform

Posted on 2014-01-24
2
87 Views
Last Modified: 2014-01-26
Hi,

Ajax.BeginForm is doing fullpostback .i am using following code



@using (Ajax.BeginForm("Employee", new AjaxOptions
       {
           InsertionMode=InsertionMode.Replace,
           UpdateTargetId = "pg",        
           OnSuccess = "successPaging",
           OnFailure = "failurePaging"
       }))

       {
<div id="pg">

  // all controls and data goes here...

 </div>
 }

I am using following scripts

<script src="~/Scripts/jquery-1.7.1.min.js"></script>
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>

could you please say me did i miss any reference , and i am not

understanding why it is doing full postback. and i am using

mvc4 with razor engine.

             Many Thanks
0
Comment
Question by:praveen1981
2 Comments
 
LVL 12

Accepted Solution

by:
deanvanrooyen earned 500 total points
ID: 39808016
your signature on Ajax.BeginForm doesnt look right...

http://sweettam.blogspot.co.uk/2011/08/using-ajaxbeginform-aspnet-mvc3-ajax.html
0
 

Author Closing Comment

by:praveen1981
ID: 39811265
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
A short film showing how OnPage and Connectwise integration works.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now