
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
30.05.2013, 14:41:56
|
|||
|---|---|---|---|
|
|||
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:11
|
|||
|---|---|---|---|
|
|||
htmlhelper asp.net mvc |
|||
|
#18+
Karen__84, try Код: c# 1. 2. 3. 4. 5. 6. 7. 8. 9. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=18&tablet=1&tid=1358386]: |
0ms |
get settings: |
11ms |
get forum list: |
23ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
60ms |
get topic data: |
15ms |
get forum data: |
5ms |
get page messages: |
63ms |
get tp. blocked users: |
2ms |
| others: | 354ms |
| total: | 545ms |

| 0 / 0 |
