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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:19:58+00:00 2026-06-09T07:19:58+00:00

When I postback on my Review page I check the modelstate and based on

  • 0

When I postback on my “Review” page I check the modelstate and based on the results either redisplay the page or continue. I have two issues.

When it fails validation it hangs up on partial views on that it loaded fine on the original get for the page.

edit: This was caused by the [HttpGet]attribute being applied to methods for the partials views. I removed the attribute and the partials renedered.

If I comment out the partials then the the whole page diplays without any CSS styles..it’s all text black and white. Edit: I’m still having the problem with the styles missing from the page

    [HttpGet]
    public ActionResult Review()
    {
        var agmtsService = new AgreementsService();
        bool? scoreRelease = agmtsService.GetReleaseScoreIndicator();

        var vm = new ReviewModel {ReleaseScoreIndicator = scoreRelease};

        return View(vm);
    }




    [HttpPost]
    public ActionResult Review(ReviewModel model)
    {

        if(!ModelState.IsValid)
        {
            return View(model);`**This is displaying the view w/o head section and no css**`
        }

        return RedirectToAction("CheckOut", "Financial");
    }

edit:

View Model

public class ReviewModel
{

    public bool? ReleaseScoreIndicator { get; set; }


    // Terms & Conditions
    [RequiredToBeTrue(ErrorMessage = "Eligibility Checkbox must be checked.")]
    public bool TermsEligibility { get; set; }

    [RequiredToBeTrue(ErrorMessage = "True and Accurate Checkbox must be checked.")]
    public bool TermsAccurate { get; set; }

    [RequiredToBeTrue(ErrorMessage = "Identity Release Checkbox must be checked.")]
    public bool TermsIdentityRelease { get; set; }

    [RequiredToBeTrue(ErrorMessage = "Score Release Checkbox must be checked.")]
    public bool TermsScoreRelease { get; set; }

}

public class RequiredToBeTrueAttribute : RequiredAttribute
{
public override bool IsValid(object value)
{
return value != null && (bool)value;
}
}

View

@model Registration.Web.Models.ReviewModel

@{
    ViewBag.DisableNavigation = true;
}
<script type="text/javascript">
    $(document).ready(function () {
        $('.open_review').toggle(function() {
            $(this).text('Done').parents('.review_section').addClass('open_for_review').find('.review_content').slideDown('fast');
            return false;
        }, function() {
            $(this).text('Review').parents('.review_section').removeClass('open_for_review').find('.review_content').slideUp('fast');
            return false;
        });


    });



</script>

<div class='section module'>
          <h2>
            Please Review Your Application
          </h2>
          <p>
            Remember that your application fee is
            <strong>
              not refundable.
            </strong>
            Review your information below and make corrections before submitting.
          </p>
          <div class='review_section'>
            <a class="button open_review" href="#">Review</a>
            <h4>
              Identification
            </h4>
            @{Html.RenderAction("Review", "PersonalInformation");}
          </div>
          <div class='review_section'>
            <a class="button open_review" href="#">Review</a>
            <h4>
              Education
            </h4>
            @{Html.RenderAction("Review", "MedicalEducation");}   /////hangs here         
          </div>
          <div class='review_section'>
            <a class="button open_review" href="#">Review</a>                              
                 @{Html.RenderAction("Review", "PostGraduate");}////then hangs here
            </div>
          </div>
          <div class='actions' id='terms_and_conditions'>






@using (Html.BeginForm("Review", "Agreements", FormMethod.Post))
{

    //"reviewForm","Agreements", FormMethod.Post

    @Html.ValidationSummary(true)


    <div class='group' id='data_release'>
        <h4>
            Data Release
        </h4>

        <p>
            Do you wish to release your scores?
        </p>
        <ul class='input_group'>
            <li>
                @Html.RadioButtonFor(model => model.ReleaseScoreIndicator, true)
                <label>
                    Yes
                </label>
            </li>
            <li>
                @Html.RadioButtonFor(model => model.ReleaseScoreIndicator, false)
                <label>
                    No
                </label>
            </li>
        </ul>



    </div>











              <div class='group' id='terms'>
                  <h4>
                      Terms &amp; Conditions

                  </h4>
                  @Html.ValidationSummary(false)

              <table>
                <tbody>
                  <tr>
                      <th>
                          @Html.CheckBoxFor(x => x.TermsEligibility)  
                         @* @Html.CheckBox("terms_eligibility")*@

                      </th>
                    <td>
                      <label for='terms_eligibility'>
                        I currently meet all of the
                        <a href="" target="_blank"> requirements</a>
                        and have read the
                        <a href="" target="_blank">Information</a>
                      </label>
                    </td>
                  </tr>
                  <tr>
                      <th>
                          @Html.CheckBoxFor(x => x.TermsAccurate) 
                        @*  @Html.CheckBox("terms_accurate")*@

                      </th>
                    <td>
                      <label for='terms_accurate'>
                        The information I've provided is true and accurate
                      </label>
                    </td>
                  </tr>
                  <tr>
                      <th>
                           @Html.CheckBoxFor(x => x.TermsIdentityRelease)  
                         @* @Html.CheckBox("terms_identity_release")*@

                      </th>
                    <td>
                      <label for='terms_identity_release'>
                        I authorize the release
                      </label>
                    </td>
                  </tr>
                  <tr>
                      <th>
                          @Html.CheckBoxFor(x => x.TermsScoreRelease) 
                          @*@Html.CheckBox("terms_score_release")*@

                      </th>
                    <td>
                      <label for='terms_score_release'>
                        I agree 
                      </label>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
              <div class='actions'>


                            <input type="submit" value="Go To Checkout" class="button" />




                  <a class="button" onclick="getForMasterPage('@Url.Action("CheckOut", "Financial")', null);">BYPASS</a>
              </div>

} </div>
  • 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-06-09T07:19:59+00:00Added an answer on June 9, 2026 at 7:19 am

    Do you need to set the ReleaseScoreIndicator on the return from being posted? It looks like it gets set for the initial GET, but the subsequent one, it doesn’t get set. Does the view use that property?

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

Sidebar

Related Questions

I have a web page with various controls. Two of them are dropdownlists. The
Possible Duplicate: ASP.NET postback with JavaScript I have a page without a form. But
Having a very strange issue regarding postback in ASP.NET. I have page dynamically populating
Is it possible to stop the page postback on any click event based on
I am getting the following error : Invalid postback or callback argument. Event validation
I'm trying to stop postback on form submit if my custom jQuery validation returns
How to avoid modal popup closing on postback ?.. I have a popup window
I want to reduce postback in one of my application page and use ajax
My page is fully postback twice. I am using master page with AJAX. The
i do Postback in my Page1.aspx to another page. If a press F5 key

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.