Hi,
DataList Inside update panel linkbutton is not downloading file.
Below is my code
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
- <ContentTemplate>
- <asp:Panel runat="server" ID="UpdatePanel1" ChildrenAsTriggers="false">
- <div style="vertical-align: middle; min-height: 480px;" class="pre-scrollable">
- <div>
- <asp:DataList ID="DataList2" runat="server" p Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" RepeatLayout="Table">
- <ItemTemplate>
- <div>
- <asp:Label ID="Label2" runat="server" Text=
- <asp:LinkButton ID="LinkButton1" runat="server" Text=
- </div>
- </ItemTemplate>
- </asp:DataList>
- </div>
- </div>
- </asp:Panel>
- </ContentTemplate>
- </asp:UpdatePanel>
- Dim fileName as String="D:\Image\1.jpg" Response.Clear() Response.Buffer = True Response.Charset = "" Response.Cache.SetCacheability(HttpCacheability.NoCache)
I try the following code but also no success
</ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID="LinkButton1" /> </Triggers>