… I ask this mainly because when I try to use the update panel, it does not work. I’ve tried placing it in itemTemplate and editTemplate and both (even though doing this would mean having to call the whole page), however I was running out of options because when I try to place it inside the LayoutTemplate (where it makes sense to place it) it did not work once again, the updatePanel & listViiew begin like this…
{arrow}asp:UpdatePanel ID="upComments" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true"{arrow}
{arrow}ContentTemplate{arrow}
{arrow}asp:ListView ID="lvComments" runat="server" DataSourceID="dsComments"{arrow}
Any ideas? This is now happening on two different aspx pages with different listviews and different datasources. Idealy, I would prefer to minimize the ajax updated area as much as possible, preferably to itemTemplate level, but I’d even settle for the entire listView at the moment. thanks guys.
Also, insertTemplate shows by default when page is loaded, and when I insert a new item, the entire page doesn’t reload (like in other cases), the item is just added. Not sure if this is a listView feature or the updatePanel in the works. When I press {edit} it reloads the page, and when I press update to update the item being edited, it also reloads the entire page. anyone?
Why not just try UpdateMode=”Always” to see if it works? If your insert includes controsl that would postback, that would be the update panel at work because listview contains nothing to do that automatically.
I would wrap the entire control with the updatepanel; when one update panel refreshes its contents, they all do, and because of that at the itemtemplate level doesn’t give you anything above and beyond what the global level gives you.
UpdatePanel’s don’t really help minimize the AJAX footprint because again it posts back the entire viewstate and all areas get refreshed; using JQuery to do AJAX is better in that regard, or using another product like Telerik (which their product only that one panel updates unless you link them together).
HTH.