Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6372025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:10:36+00:00 2026-05-25T01:10:36+00:00

I am a newbie and just started learning the asp.net mvc, as I was

  • 0

I am a newbie and just started learning the asp.net mvc, as I was going through the partial view tutorial and I created the small test application which is working fine.

I have a page which has a customers order and each item has an edit buttons for adding or deleting the items and by pressing it I can increase an item or delete an item from the cart. And for such action I am using

 HTML.actionlink("+", "AddToCart", "Orders", new { orderid=tempcart.orderid }, 
 new AjaxOptions()      
 { 
      OnBegin = "showplaces", 
      OnSuccess = "hideloader" 
 }, null); 

so when I click the button it goes to AddToCart() action and update the table in database but it doesn’t update the partial view and the loader.gif stays forever on the page and don’t call the hideloader() function.

Can you please tell me what’s the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:10:37+00:00Added an answer on May 25, 2026 at 1:10 am

    1- First user Ajax.ActionLink as you are updating the partial view

    2- One thing also place the cart’s div id so it can get updated when action finishes.

    3- And I had such problem once, so I did the following:

    add OnFailure attribute in Ht

    Ajax.ActionLink("+", "AddToCart", "Orders", new { orderid=tempcart.orderid }, 
     new AjaxOptions()      
     { 
          UpdateTargetId = "cart_divId", 
          OnBegin = "showplaces",
          OnFailure = "ShowDOMExcep", 
          OnSuccess = "hideloader" 
     }, null); 
    

    and use this method to get DOM exception:

    function ShowDOMExcep(context) {
    
        var html = context.get_data();
        var placeholder = context.get_updateTarget();
        $(placeholder).html(html);
        return false;
    }
    

    hope this helps …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning, Apologies for the newbie question. I'm just getting started with ASP.NET internationalization
A bit of a newbie question for iOS, just started learning about Core Graphics
I'm a relative rails newbie, just getting started on learning how to DRY my
I've just started learning Ruby on Rails and it's a newbie question. I did
Newbie question (I'm just getting started with Python and Pydev): I've created a project
I'm a total newbie to programming and just started learning JAVA i order to
i am a complete newbie to the entity framework,mvc just started with it 3
Just started a 'real world' project using .NET MVC, Ninject, PetaPoco and plan to
I am a newbie on web development, just started learning ajax request and dynamic
I am just started using Git, so I apologize if it is a newbie

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.