Solved

ajaxbeginform

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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