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 891639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:55:18+00:00 2026-05-15T13:55:18+00:00

ViewData.Model.ExecuteResult does not exist in ASP.NET MVC2, but in MVC1. What is the alternative

  • 0

ViewData.Model.ExecuteResult does not exist in ASP.NET MVC2, but in MVC1.

What is the alternative in ASP.NET MVC2?

What I want to do, is to update a table after an ajax request. So I put the table in an extra View. How can I update this partial view without loading the whole page again?

  • 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-15T13:55:19+00:00Added an answer on May 15, 2026 at 1:55 pm

    ExecuteResult is a method on the System.Web.Mvc.ActionResult class. Are you sure you don’t mean to be looking there?

    http://aspnet.codeplex.com/SourceControl/changeset/view/23011#266522

    The Model property is just an object type, and always has been, AFAIK.

    As for updating the table, what I’ve done in the past, to update a portion of a page after a partial view is to use Ajax.BeginForm like so:

    <% using (Ajax.BeginForm("Customers", new AjaxOptions { UpdateTargetId  = "customerList"})) { %>
        <!-- FORM HERE -->
    <% } %>
    <div id="customerList">
        <% Html.RenderPartial("CustomerList"); %>
    </div>
    

    ‘UpdateTargetId’ is the key here, and tells MVC to use the result of the “Customers” action to replace (by default, you can append by setting the InsertionMode AjaxOption to InsertBefore or InsertAfter) everything inside the element withthe Id you specify.

    If you want to use the same action to service the full page request and the Ajax request, you can use the IsAjaxRequest extension method to determine what to return:

    if (Request.IsAjaxRequest())
        return PartialView("CustomerList");
    
    // Not an Ajax request, return the full view
    return View();
    

    Hope that helps!

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

Sidebar

Related Questions

I want to do the following: <%=var t = ViewData.Model%> but in VB
How to get ViewData in loaded page, using Asp.net MVC and javascript ?
I want to send ViewData.model to Special action with the last user data entry.
I want to use a LinqDataSource or ObjectDataSource with ViewData.Model, where ViewData.Model is an
I am creating a dynamic CSS file in ASP.NET MVC2, and I'm now encountering
In my main page (call it index.aspx ) I call <%Html.RenderPartial(_PowerSearch, ViewData.Model);%> Here the
I am trying to convert my spark views to use ViewData.Model instead of the
Can you help me how to create my own ViewData.Model from mesto? public ActionResult
<% foreach (FoodMenu f in (IEnumerable)ViewData.Model) { %> <ul > <li><%= Html.Encode(f.ProductId) %> </li>
Is it possible to access the DisplayNameAttributes that are used on my ViewData.Model so

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.