|
|
|
События DropDownList
|
|||
|---|---|---|---|
|
#18+
Добрый день. У меня DropDownList не отрабатывает события, делаю так: protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { Label1.Text = DropDownList1.SelectedItem.Text; } и ничего не происходит, хотя если этот код вписать на событие кнопки, то Label изменяется. Как это можно вылечить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2006, 06:16 |
|
||
|
События DropDownList
|
|||
|---|---|---|---|
|
#18+
А попробуй у листа поставить AutoPostBack="True". Ну например: <asp:ListBox id="ListBox1" Rows="4" AutoPostBack="True" SelectionMode="Single" runat="server"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:ListBox> ЗЫ. И посмотри что к чему в мсдн, например. ЗЗЫ. А у кнопки просто postback идет автоматически ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2006, 07:33 |
|
||
|
|

start [/forum/topic.php?fid=18&fpage=946&tid=1392269]: |
0ms |
get settings: |
6ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
40ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
18ms |
get tp. blocked users: |
1ms |
| others: | 228ms |
| total: | 315ms |

| 0 / 0 |
