Home > DeveloperSection > Forums > Html elements are ignoring name property
marcel ethan
marcel ethan

Total Post:105

Points:735
Posted on    April-10-2014 11:34 PM

 ASP.NET MVC ASP.NET MVC 
Ratings:


 1 Reply(s)
 935  View(s)
Rate this:

I'm building a Form with the following code

<h1>Opzoeken</h1>

@using (Ajax.BeginForm(

new AjaxOptions {

    HttpMethod = "get",

    InsertionMode = InsertionMode.Replace,

    UpdateTargetId = "ZoekResultaat" }))

{

<input type="search" name="searchterm" /> <br />

<input type="submit" name="Externe" />

<input type="submit" name="Leveranciers" />

<input type="submit" name="Contracten" />

}

But no matter what browser I debug in the buttons always have "Verzenden" instead of the assigned name.

detail: it's an mvc app and I checked the css nothing is changing the name off the buttons in there.



Pravesh Singh

Total Post:411

Points:2881
Posted on    April-11-2014 12:07 AM

Hi Marcel,

You can try this:

Use value="" to override the text the button displays, Verzenden is default for the Dutch language, which is automatically detected. For English people it will show Submit, etc.

<input type="search" name="searchterm" /> <br />

<input type="submit" name="Externe" value="Externe" />

<input type="submit" name="Leveranciers" value="Leveranciers" />

<input type="submit" name="Contracten" value="Contracten" />


Don't want to miss updates? Please click the below button!

Follow MindStick