PDA

View Full Version : سوال: استفاده از file upload داخل update panel با استفاده از async postback trigger



agha ehsan
سه شنبه 12 خرداد 1394, 10:23 صبح
واقعا توی این تالار کسی نمیتونه مشکل منو حل کنه؟
دیروز تاپیک گذاشتم ولی به جواب نرسیدم
مشکلم اینه که میخوام با استفاده از update panel و async postback trigger از فایل آپلود استفاده کنم ولی فایل آپلودم هنگام زدن دکمه ثبت خالی میشه
از postback trigger هم نمیخوام استفاده کنم چون کل صفحه رفرش میشه
فایل آپلودم خارج از آپدیت پنل هست
لطفا کمکم کنید



<asp:ImageButton ID="btn_add" ImageUrl="~/image/ADDD.png" runat="server" /><asp:ImageButton ID="btn_del" ImageUrl="~/image/ButtonImage/-.png" runat="server" />
&nbsp;
<asp:Label ID="lbl_msg_peyvast" runat="server" Font-Bold="true" ForeColor="red" Visible="false"></asp:Label>
&nbsp;


<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None">
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<input id="chkAll" runat="server" type="checkbox" onclick="toggleCheckBoxes(this, cnt)" />
</HeaderTemplate>
<ItemTemplate>
<input id="chk" runat="server" type="checkbox" class="check" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<AlternatingRowStyle BackColor="White" />
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>

<asp:Label ID="Label27" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label23" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<%--<asp:PostBackTrigger ControlID="btn_add"/>--%>
<asp:AsyncPostBackTrigger ControlID="btn_add" EventName="Click" />
</Triggers>
</asp:UpdatePanel>