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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:12:50+00:00 2026-05-31T17:12:50+00:00

I got an action List //[HttpGet] (will come back to that!) public ViewResult List(int

  • 0

I got an action List

    //[HttpGet] (will come back to that!)
    public ViewResult List(int page = 1)
    {
        //blah blah blah
        return View(viewModel);
    }

In its view we render action:

@{        
    Html.RenderAction("UpdateSearch");
}

Action definitions:

[ChildActionOnly]
[HttpGet]
public PartialViewResult UpdateSearch()
{
    // do something and display a form in view
    return PartialView(so);
}

[HttpPost]
public RedirectToRouteResult UpdateSearch(Options searchOptions)
{
    // do something and redirect to List
    return RedirectToAction("List");
}

and I’m getting: Child actions are not allowed to perform redirect actions exception every time someone submits the form. I’m new to MVC3, but it looks like the redirection is also a POST, because if [HttpGet] above List method is uncommented “the resource cannot be found” happens.

How do I change Http method on redirection or am I doing something wrong? I did try to Bing it, but no success.

  • 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-31T17:12:51+00:00Added an answer on May 31, 2026 at 5:12 pm

    The redirect info is stored in response header. However, the response is already being sent when child action is run so headers can’t be written.

    In short, there’s no way of performing a redirect from child action other than through the use of javascript on client side.

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

Sidebar

Related Questions

I've got a form in a web page with an action that is mailto:email
I got a page that lists all my articles (Articles/List.aspx). I also got a
I've got a MVC 3 view which displays a list of items that can
Hi, Say that I got a action that returns to a strong typed view.
I got a controller action like public class Question { public int Id {
I've got a list view in my MVC app that shows a check box
I've got a struts2 action that responds to an AJAX request by taking some
I've got a RESTful resource (let's say posts ) that excludes the index action.
I've got a list of identical (signature-wise) events (25+): public class SourceOfManyEvents { public
I've got a class that contains (among many other things) a list of items

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.