Reputation: 1286
I have a listbox and two buttons that change the listitems in that listbox. They are in a wizard and when I click on the buttons, I do not want the page to load. I want to stay in the same page without loading a new one and change the list items.
The listbox retrieve its item from a sql database (there are thousands of rows)
I know this may be done in AJAX but with asp.net 2.0, this is a difficult task to accomplish. Any suggestions would be appreciated.
Upvotes: 0
Views: 111
Reputation: 8472
If you can, i would definatelly use some jsavascript framework to deal with Ajax ( JQuery/Dojo for example )
Upvotes: 0
Reputation: 29000
You can use UpdatePanel
control with Triggers
and UpdateMode="Conditional"
Link : http://msdn.microsoft.com/fr-fr/library/system.web.ui.updatepanel.aspx
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ButtonId" />
</Triggers>
<ContentTemplate>
<asp:ListView ID=".." runat="server"/>
....
</ContentTemplate>
</asp:UpdatePanel>
Upvotes: 2