I need some help here.
I have a page which I am using the ToolkitScriptManager for the use of some AJAX Calendar Control Extenders, and that works fine.
Where I am running into a problem is using the UpdatePanel. I am not getting a partial or any postback on a listbox control. I have attached snippets of my code. How it is supposed to work is when a user clicks on an item in the Listbox it should update the lblLeads Label. Of course it should do this using Ajax, without doing a Postback noticeable to the user.
I have tried adding the regular ScriptManager and I get errors and when I have both of them loaded, ToolkitScriptManager and ScriptManager, I get an error saying that you can only have one Scriptmanager on the page.
Thanks in advance.
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
little further down...
[List box code]
<asp:ListBox ID="ListBox1" runat="server" SelectionMode="Multiple" Width="199px" DataSourceID="ObjectDataSource2" DataTextField="Col001"
little bit further down...
[Update Panel code]
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<asp:Label ID="lblLeads" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
<asp:PostBackTrigger ControlID="ListBox1" />
[Code Behind for ListBox]
protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
string myLeads = "";
for (int i = 0; i < ListBox1.Items.Count; i++)
myLeads += ListBox1.Items[i].Value + ", ";
if (myLeads.Length > 0)
myLeads = myLeads.Substring(0, myLeads.Length - 2);
lblLeads.Text = myLeads;