Rank: Newbie Groups: Member
Joined: 8/21/2007 Posts: 3
|
I just found your controls, and I love them. I'm trying to create my first CallBackPanel application. Here's what I want to do: 1) I have a dropdownlist, that autoposts back, and calls a function 2) this function does a database call, and puts data into a textbox. This works great, but I want to stop the whole page from being refreshed, so I'm trying to use a CallbackPanel, to only update the textbox, when the dropdown list changes.
Here's the code, half in the old code (with autopostback), and half with the callbackpanel. This doesn't work, but can anyone tell me what I'm missing?
Thanks - Jim
<asp:DropDownList ID="DropDownList_To" runat="server" OnSelectedIndexChanged="DropDownList_To_SelectedIndexChanged" AutoPostBack="True" > <asp:ListItem Value="0" Selected="True">--- Please Choose ---</asp:ListItem> <asp:ListItem Value="1">All who Applied (includes cancelled)</asp:ListItem> <asp:ListItem Value="2">All except Cancelled</asp:ListItem> <asp:ListItem Value="3">All Accepted</asp:ListItem> </asp:DropDownList>
<eo:CallbackPanel ID="CallbackPanel1" runat="server" Triggers="{ControlID:DropDownList_To;Parameter:}" > <asp:ListBox ID="ListBox1" runat="server" Height="60px" Width="595px" Enabled="false"></asp:ListBox> </eo:CallbackPanel>
|
Rank: Newbie Groups: Member
Joined: 8/21/2007 Posts: 3
|
I got it !!! I love your controls! Jim
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Cool!
|
Rank: Newbie Groups: Member
Joined: 12/4/2007 Posts: 4
|
What did you do to solve the problem?
|
Rank: Newbie Groups: Member
Joined: 8/21/2007 Posts: 3
|
Actually, it was a couple of months ago, and I don't remember. Once I read EO's documentation again, I figured it out. I've since decided to use Ajax. Sorry that I can't be of more help. Jim
|
Rank: Newbie Groups: Member
Joined: 12/4/2007 Posts: 4
|
No prob - I figured it out too! Had to enable PersistViewState.
|