Solved

ajaxbeginform

Posted on 2014-01-24
2
86 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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