Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2008-07-13 : 07:30:14
|
Hello All,I have a dynamic dropdown list box, that is encapsulated in an ajax update panel.However, all other ajax functionality in the page works. Except this databound control. Here is my code. whats wrong.EhiNB: I have set the dropdown box to autopost back.* If you choose one of the dropdown menu, nothing happens. But when i trigger another control that has an ajax functionality, elsewhere in the page, The other control works and also triggers this control. protected void Phone_Groups_SelectedIndexChanged(object sender, EventArgs e) { Scheduled_details.Visible = true; Scheduled_details.Text = "Test"; }<td bgcolor="#F3F5FC" style="text-align: center"> <asp:UpdatePanel ID="UpdatePanel_Phonebook" runat="server"> <ContentTemplate> <table cellpadding="2" class="style1"> <tr> <td bgcolor="#E4EDED" class="style20" style="text-align: center"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Image ID="Image8" runat="server" ImageUrl="~/images/navigation/arrow.gif" /> <asp:DropDownList ID="Phone_Groups" runat="server" AppendDataBoundItems="True" AutoPostBack="True" CausesValidation="True" DataSourceID="PhoneGroupsDb" DataTextField="groupname" DataValueField="groupname" onselectedindexchanged="Phone_Groups_SelectedIndexChanged" style="text-align: center"> <asp:ListItem Value="0">PhoneBook (Empty)</asp:ListItem> <asp:ListItem Value="0">---------------</asp:ListItem> <asp:ListItem Value="1">Add Group</asp:ListItem> <asp:ListItem Value="0">---------------</asp:ListItem> </asp:DropDownList> <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Go" /> </td> </tr> <tr> <td style="text-align: center"> <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label> </td> </tr> </table> </ContentTemplate> </asp:UpdatePanel> </td> |
|
|
|
|