
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
30.05.2013, 14:41
|
|||
|---|---|---|---|
|
|||
htmlhelper asp.net mvc |
|||
|
#18+
Добрый день всем .Хачу сделать custom htmlhelper который в текстбоксах показывает значение string масива .Пишу такой код public static class Control5 { public MvcHtmlString MyControl(this HtmlHelper html, string [] arr) { TagBuilder tg = new TagBuilder("div"); for (int i = 0; i < arr.Length; i++) { TagBuilder t = new TagBuilder("input"); t.MergeAttribute("type", "text"); t.MergeAttribute("value", arr[i]); } } } но неполучается добавить эти текстбоксы в div. Скажите как можно добавить их в div ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.05.2013, 22:10
|
|||
|---|---|---|---|
|
|||
htmlhelper asp.net mvc |
|||
|
#18+
Karen__84, try Код: c# 1. 2. 3. 4. 5. 6. 7. 8. 9. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=18&mobile=1&tid=1358386]: |
0ms |
get settings: |
9ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
166ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
| others: | 216ms |
| total: | 468ms |

| 0 / 0 |
