Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ajaxbeginform

Posted on 2014-01-24
2
Medium Priority
?
105 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
deanvanrooyen earned 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

604 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