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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:09:02+00:00 2026-05-19T17:09:02+00:00

I have a problem. You see, I’ve got this code (MVC3) @Using Html.BeginForm() @Html.ValidationSummary(True,

  • 0

I have a problem. You see,

I’ve got this code (MVC3)

@Using Html.BeginForm()
 @Html.ValidationSummary(True, "Please review errors.")

 @<fieldset>
 <legend>Fields</legend>
        <p>
            @Html.LabelFor(Function(Model) Model.ID_PROVINCIA, "Code:")
            @Html.TextBox("ID_PROVINCIA", "Automatic", New With {.readonly = "readonly"})
        </p>
        <p>
            @Html.LabelFor(Function(Model) Model.DESC_PROVINCIA, "Name:")
            @Html.TextBoxFor(Function(Model) Model.DESC_PROVINCIA, New With {.style = "text-transform:uppercase"})
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>

    @<div>
        @Html.ActionLink(" ", "List", "Administration", New With {.area = ""}, New With {.class = "imgBack", .title = "Back"})
    </div>
End Using

if I use @Html.ValidationSummary(True, “Please review errors.”) nothing happend on submit. If I use @Html.ValidationSummary(False, “Please review errors.”) I get error: “The field ID_PROVINCIA must be a number”

I need to exclude this comprobation on ID_PROVINCIA when submit form, because with text “Automatic” the users know the ID number is assign automatically.

In the controller I’ve got:

<AcceptVerbs(HttpVerbs.Post)> _
Function Create(<Bind(Exclude:="ID_PROVINCIA")> ByVal parProvincia As PROVINCIA) As ActionResult
End Function

In MVC2 there was no problem, actually i’m trying to migrate the app. Any idea??
Regards.

  • 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-19T17:09:02+00:00Added an answer on May 19, 2026 at 5:09 pm

    I resolve the problem changing

    @Html.TextBox("ID_PROVINCIA", "Automatic", New With {.readonly = "readonly"})    
    

    to

    @Html.TextBox("ID_PROVINCIA1", "Automatic", New With {.readonly = "readonly"})
    

    This is because I’m not using TextBoxFor for Model and the controller Bind-Exclude ID_PROVINCIA.

    See ya.

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

Sidebar

Related Questions

I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have problem in displaying drop-down menu. Please, see the example on: http://staging.gwynconsulting.com/rif/hello-world-2/ When
I have problem with this code, it's working on debug environment. On the instruments
Problem solved: Thanks guys, see my answer below. I have a website running in
I have a problem using the Java search function in Eclipse on a particular
I have a problem I see every so often - I create a CSS
i have problem with linq2sql. As you see below I have two tables from
I have problem with customizing each page using pagecontrol and UIScrollView. I'm customizing Page
I have problem in some JavaScript that I am writing where the Switch statement
I have problem with return statment >.< I want to store all magazine names

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.