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

  • Home
  • SEARCH
  • 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 850515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:16:35+00:00 2026-05-15T07:16:35+00:00

Does this <% Html.EnableClientValidation(); %> really enable client validation that validation without page refresh

  • 0

Does this <% Html.EnableClientValidation(); %> really enable client validation that validation without page refresh or not?

The thing is that it is doing a page refresh while returning formviewmodal ,it is working fine when using modal ? So how will i make it work using formviewmodal

here is the code of the controller returning FormViewModel

public class OrganizationGroupFormViewModel
{      
    public OrganizationGroup OrganizationGroups { get; set; }
    public OrganizationGroupFormViewModel() { }

    public OrganizationGroupFormViewModel(OrganizationGroup OrganizationG)
    {
        OrganizationGroups = OrganizationG; 
    }
}

public class OrganizationGroupsController : Controller
{
    public ActionResult Create()
    {       
        OrganizationGroup OrgGroup = new OrganizationGroup
        {
            int_CreatedBy = Authorization.UserID,
            dtm_CreatedDate = DateTime.Now
        };
        return View(new OrganizationGroupFormViewModel(OrgGroup));     
    }

    [HttpPost]
    public ActionResult Create(OrganizationGroup OrgGroup)
    {
        try
        {
          if (ModelState.IsValid)
           {
             OrgGroup.int_CreatedBy = Authorization.UserID;
             OrgGroup.dtm_CreatedDate = DateTime.Now;

             OrganizationGroupRepository.Add(OrgGroup);
             OrganizationGroupRepository.Save();

             return View(new OrganizationGroupFormViewModel(OrgGroup));
          }
          else
              return View(new OrganizationGroupFormViewModel(OrgGroup));
        }
        catch
        {
            return View(new OrganizationGroupFormViewModel(OrgGroup));
        }
    }
  • 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-15T07:16:36+00:00Added an answer on May 15, 2026 at 7:16 am

    Yes, this helper method adds the appropriate javascript to the page in order to enable client validation. You will need to include the proper js scripts based on the framework you are using. Take a look at this blog post.

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

Sidebar

Related Questions

Why this curl command does not work in CMD. It should downlaod a html
Why this does not work ON INTERNET EXPLORER: I have this html input tag.
Although I think that I did it before successfully, but this code does not
Given this HTML: <div class=OpenIDSelector>some text</div> Why does this JQuery selector match it on
Ryan Bates' nifty_scaffolding, for example, does this edit.html.erb <%= render :partial => 'form' %>
Why does this empty the text immediately (ignoring delay)? $('#error_box_text').html('error text').delay(5000).html('') # jQuery 1.4
Why does only the third method work? $('#jqtest').live('load', function() {$(this).html('hi');}); //1 $('#jqtest').load(function() {$(this).html('hi');}); //2
Does this function has the same behavior that memset ? inline void SetZeroArray( void
Why does this not work ? In Firebug, when I click on the button,
I'm trying to use the example from this site to do client site validation.

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.