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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:22:17+00:00 2026-05-12T22:22:17+00:00

The replies in this post sound very convincing, however, this post is just over

  • 0

The replies in this post sound very convincing, however, this post is just over my head and was hoping for some help:

I have code in my partial view that looks like this:

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div class="messageBox1"></div>

<% Html.BeginForm("BusinessAdd", "Home", FormMethod.Post, new { id = "form1" }); %>

<label for="BusinessName">Business Name: </label>
<%= Html.TextBox("TxtBusinessName") %>
<a href="#" onclick="if ($('#form1').valid()) { $('#form1').submit(); } return false;">submit</a>

<script type="text/javascript">
    $("#form1").validate({
        errorLabelContainer: ".messageBox1",
        rules: {
            "TxtBusinessName": { required: true }
        },
        messages: {
            "TxtBusinessName": { required: "Required field" }
        }
    });
</script>
<% Html.EndForm(); %>

Thanks, rodchar

P.S. Will this question get seen or should I have posted a new question and referenced this post?

  • 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-12T22:22:17+00:00Added an answer on May 12, 2026 at 10:22 pm

    I don’t think there is a problem with doing what you quoted above. I do it in my production mvc app. Sure if the volume of js you load onto the page after a full request gets massive then look for another option but if it’s a couple of partials like this then it’s fine.

    Be practical. Don’t over engineer. And try not to optimise early.

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

Sidebar

Related Questions

I have this code so far which perfectly but relies on there being a
In the code below I make a POST request to a servlet that replies
Let's say I have this in a document: <entry> <link rel=replies type=application/atom+xml href=http://www.url.com/feeds/1/comments/default title=Comments/>
I have this jQuery code that retrieves external content using ajax, without refereshing the
After reading many of the replies to this thread , I see that many
In this question someone replies You never let the domain object implementations call services
I am maintaining this servlet that has a HttpServletResponse response that replies back to
I have this c# web app that relies heavily on two dll files that
I'm detecting @replies in a Twitter stream with the following PHP code using regexes.
How do I go about displaying the most recent post when I have two

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.