製品
店舗デモ
ショーケース
機能
開発者向け
店舗オーナー向け
産業
ファッション
健康& 美容
食品&飲料
自動車
工業 & 科学
家具
B2B eコマース
国際
ダウンロード
nopCommerce ダウンロード
マーケットプレース
翻訳
著作権削除キー
モバイルアプリケーション
Web API
サポート & サービス
トレーニング
ドキュメント
コミュニティフォーラム
プレミアムサポートサービス
見積り依頼
お問い合わせ
パートナー
日本語
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
始めましょう
Shopping cart
ユーザ
ログイン
ユーザ登録
ホーム
>
フォーラム
>
General
>
General Support
>
How add a class to @Html.EditorFor?
How add a class to @Html.EditorFor?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
gnikitsin
投稿総数:
269
カルマ:
1423
参加:
2010/02/12
ロケーション:
Belarus
投稿完了:
3 年 前
Good afternoon.
I want to add a class to @Html.EditorFor (model => model.FirstName, new {@class = 'form-control'}), but the text-box single-line class is generated. How should I be in this situation?
Thanks
msn4561
投稿総数:
38
カルマ:
246
参加:
2015/12/20
ロケーション:
Germany
投稿完了:
3 年 前
Hi,
you should not use Apostrophe to declare string. Use Quotation mark instead.
@Html.EditorFor(model => model.Name,
new
{ @calss = "form-control" })
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
まだ質問があるか、助けが必要ですか?
.
プレミアムサポートサービス
.
24時間以内に応答を保証するnopCommerceチームからの専任サポートを受けてください。
.
開発者向けオンラインコース
.
nopCommerceウェブサイトの実行およびカスタマイズに必要な実用スキルおよび技術スキルを習得します。