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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:28:06+00:00 2026-05-17T00:28:06+00:00

So, the partial view is a form, that is revealed via a jQuery show().

  • 0

So, the partial view is a form, that is revealed via a jQuery show(). The form is submitted, and suppose a unique index is violated, for example, using the Post-Redirect-Get pattern I pass the errors via TempData back to the original view, which contains the partial view that is of course hidden again. Therefore the form’s errors/hints/original data is not visible.

What is the most efficient way of presenting/revealing this partial view’s form, with error message(s)?

  • 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-17T00:28:06+00:00Added an answer on May 17, 2026 at 12:28 am

    Try not redirecting in case of error. If the ModelState is invalid simply return the same view. Then in the view you could display the form. If you want to continue using the Post-Redirect-Pattern you could store the ModelState into TempData as shown in this blog post and a nice implementation here.

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

Sidebar

Related Questions

I have a view with a button that opens a jquery dialog via partial
if i have created a view model and have a partial form that is
I have a partial view with some JQuery... $(#btnCancelPayment).click(function () { $(this).closest('#test').show('fast'); $(this).closest(#paymentSection).hide('fast'); });
I am trying to upload images via a form which sits in partial view
I am using ASP.Net MVC. I have a partial view which has a form
I'm posting a form from a partial view which is rendered via Html.RenderAction and
On Rails 3.2.3, I have a form in a partial view, using bootstrap 2.0.2
I have a large Ruby on Rails form that has the following partial view
Inside of an asp.net mvc partial view, I have an Ajax form that posts
On a view, i have a partial view rendering an ajax form that allows

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.