ASP.Net Datalist with associated DataSourceId does not reload

I have a MultiView control that has a View that populates a DataList like this:

<asp:DataList ID="DataList6" runat="server" DataSourceID="SqlDataSource11" Width="100%">
<ItemTemplate>
   <!-- rendering is left out to keep this sample simple -->
</ItemTemplate>
</asp:DataList>

      

The problem is when I switch to a different view of the MultiView to edit the contents of that list of data and return after saving the data, the data is not updated. I checked the database and I am sure the data has changed.

How do I solve this?

0


a source to share


1 answer


Try DataList6.DataBind



+1


a source







All Articles