Solved

ajaxbeginform

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

737 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