631 users online

The attribute does not accept HTML in 2.30 e 2.40

Posted: 3 months ago Quote
Hello I am having trouble putting the CSS in Textbox in Version 2.3 and 2.4, the attribute does not accept HTML in New User Registration:

Not accepted: @ Html.EditorFor (model => model.FirstName, new {@ class = "textbox"})

Accepts: @ Html.TextBoxFor (m => m.Username, new {@ class = "textbox"})
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 3 months ago Quote
I believe that is to do with Microsoft's EditorFor class. It is they, that have made the class not accept any HTML / CSS attributes.

Why not use TextBoxFor instead ?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
nopCommerce v2.xx themes >> http://www.ncthemes.com

Want better front end features for nopCommerce 2.xx ? Vote up this >> http://nopcommerce.codeplex.com/workitem/10622