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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:25:20+00:00 2026-05-13T00:25:20+00:00

I have a troubleshoot with my MVC project. I’m trying to do this: On

  • 0

I have a troubleshoot with my MVC project. I’m trying to do this:

On a view i’m loading some data on a jqgrid, and based on some selections of the user, i save those selections on a javascript VAR, and i passed it via $post to a Action of the controller, that action is supposed to call it’s own view and load the data i passed previously.

Passing the data is working fine, but when the data reaches the new View (the second one), it simply don’t load; i made a debug to confirm that the data is reaching the second view, but the page doesn´t shows.

Here is the code of my javascript:

$.post("/MyController/MyAction", { strParams: myParam });

Here is my Controller

    public ActionResult MyAction(string[] strParams){... return View(myobject);}

Here is my second view header:

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteIC.Master" Inherits="System.Web.Mvc.ViewPage<object[]>" %>

…

I don’t see where is the problem, everything passed OK except for the second view that doesn’t shows.

  • 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-13T00:25:20+00:00Added an answer on May 13, 2026 at 12:25 am

    Where do you expect the view to load? When you do

    $.post("/MyController/MyAction", { strParams: myParam });
    

    this will simply post to the controller action and do nothing with the results (You can confirm that an AJAX call is performed using FireBug). If you want to do something with the result returned by the controller action you could try this:

    $.post("/MyController/MyAction", { strParams: myParam }, function(result) {
        // result variable will contain the HTML rendered by the action
    });
    

    Also if you intend to inject the resulting HTML somewhere into the DOM your controller action needs to return a partial view instead of a full view:

    public ActionResult MyAction(string[] strParams)
    {
        // ...
        return PartialView("~/Views/MyController/MyAction.ascx", myobject);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to troubleshoot this error, but I have had no luck. Warning: mkdir()
Not sure how to troubleshoot this problem. I have an IntelliJ Ultimate Edition, used
So, I have been having a bear of a time trying to troubleshoot why
I have been trying to troubleshoot an issue and I really don't have any
I have been trying to troubleshoot for a while now and I officially give
I have a php script that is rather hairy and I'm trying to troubleshoot
I have been continuously trying to customize OpenAphide project but Unable to achieve that,Actually
I am trying to troubleshoot this code and am running into a dead-end, so
I have a brand new asp.net mvc 3 project. I did not modify the
I have inherited a poorly designed Access 2002 database. I am trying to troubleshoot

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.