A
AAaron123
I had a similar problem once before and never really solved it.
Generated a work around that was not optimum.
But worked.
But I now have another one.
I don't really know how to give enough info for someone to help.
But here goes:
The DataList shows all the files in a folder.
Clicking the button deletes them all.
But the Browser still shows the files as if they ae still there.
The following image files are currently in the folder already
<aspataList runat="server" ID="DataListAll" RepeatColumns="1"
RepeatLayout="table"
RepeatDirection="horizontal" DataSourceID="ObjectDataSourceAll">
<ItemTemplate>
<%# Container.DataItem %>
</ItemTemplate>
</aspataList>
<asp:Button ID="ButtonDeleteAll" runat="server" Text="Delete All These
Files" />
<asp:ObjectDataSource ID="ObjectDataSourceAll" runat="server"
TypeName="PhotoManager"
SelectMethod="ListImportAllDirectory"></asp:ObjectDataSource>
Hope there is enough above to display the problem source.
Thanks
Generated a work around that was not optimum.
But worked.
But I now have another one.
I don't really know how to give enough info for someone to help.
But here goes:
The DataList shows all the files in a folder.
Clicking the button deletes them all.
But the Browser still shows the files as if they ae still there.
The following image files are currently in the folder already
<aspataList runat="server" ID="DataListAll" RepeatColumns="1"
RepeatLayout="table"
RepeatDirection="horizontal" DataSourceID="ObjectDataSourceAll">
<ItemTemplate>
<%# Container.DataItem %>
</ItemTemplate>
</aspataList>
<asp:Button ID="ButtonDeleteAll" runat="server" Text="Delete All These
Files" />
<asp:ObjectDataSource ID="ObjectDataSourceAll" runat="server"
TypeName="PhotoManager"
SelectMethod="ListImportAllDirectory"></asp:ObjectDataSource>
Hope there is enough above to display the problem source.
Thanks