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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:39:25+00:00 2026-05-27T11:39:25+00:00

In my application , i am using clienside validation to validate particular controls which

  • 0

In my application , i am using clienside validation to validate particular controls which are rendered from partial view.Partial view coding :

   <fieldset>
   <div>
      <div>
         <%= Html.LabelFor(model => model.OrderID) %>
   </div>
   <div class="editor-field"> 
         <%=Html.DisplayFor(model => model.OrderID)%>
         <%= Html.TextBoxFor(model => model.OrderID) %>
         <%= Html.ValidationMessageFor(model => model.OrderID) %>
   </div>
   </div>
   <fieldset>

After rendering this partial view . i added this with form.

Its not working properly(didnot display error message) when the controls are render in partial view.
Then i render this control in normal view its working fine.

    <add key="ClientValidationEnabled" value="true"/>  
    <add key="UnobtrusiveJavaScriptEnabled" value="true">

After i set UnobtrusiveJavaScriptEnabled is false . then i put my control in partial . now its working. but it is not proper way.i want to do it in proper way .

Any idea about this.

sorry i forgot one thing when i was using html begin form in inside partial view with UnobtrusiveJavaScriptEnabled= true . that time also it working.

  • 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-27T11:39:25+00:00Added an answer on May 27, 2026 at 11:39 am

    Make sure your field is inside a form because validation messages don’t render if the field is not inside a form.

    If it is not the reason, show us the validation attribute you’re using for this field.

    Edit: Maybe obvious, but check that the unobstrusive .js scripts are being loaded. Put the link right in the place that the fields are being validated to confirm it.

    Edit 2: Look at the generated html code. Check if the validation messages are beging generated or not. The Rick Anderson idea also seems to be a good starting point in order to find the problem.

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

Sidebar

Related Questions

An older application using System.Web.Mail is throwing an exception on emails coming from hr@domain.com
I have a Php application using stream_socket_client(), to get data through tcp from a
I'm developping an Adobe AIR application which gathers data (from intranet webservices) and stores
i'm using AMFPHP to stream content from my server to my Flex application, since
I have a web application using ASP.NET 2.0 and I want to know if
I am developing an application using MVC Preview 5. I have used typed views.
In my ASP.NET application using InProc sessions, Session_End calls a static method in another
I developing ASP.NET application using a Swedish version of Windows XP and Visual studio
When starting a django application using python manage.py shell , I get an InteractiveConsole
I am developing an application using Windows Mobile 5.0, under embedded VC++ 4.0, and

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.