|
-
Apr 19th, 2010, 12:21 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] UpdateProgress not working under Updatepanel control.?
Dear All,
In my aspx page I have UploadFile, Button and a Gridview. I have embedded all controls in Updatepanel control but upon selecting file in UploadFile control, Upon click of the button UpdateProgress text message does not work whereas without using Updatepanel it works very fine.
What could be the reason? and solution for this.
see the code below:
Code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" >
<ContentTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td>
<asp:Panel ID="Panel2" runat="server" GroupingText="Production Scheduling(Excel File)"
Width="100%" Font-Bold="True" Font-Size="Larger" BorderColor="navy">
<table id="Table1">
<tr>
<td style="height: 1px; color: Red; width: 8px;">
*</td>
<td align="left" class="pl12 pb06 pr04" style="width: 139px; height: 4px" valign="middle">
<asp:Label ID="Label2" runat="server" Text="Select file(.xls file)" Width="154px"></asp:Label></td>
<td align="left" class="pb06 pr04" style="width: 552px; height: 4px" valign="middle">
<asp:FileUpload ID="FileUpload2" runat="server" Width="300px" />
<asp:TextBox ID="txtXLSFile" runat="server" ReadOnly="True" Visible="False"></asp:TextBox><asp:Label
ID="lblXLSCount" runat="server" Width="75px"></asp:Label></td>
</tr>
<tr>
<td style="height: 1px; color: Red; width: 8px;">
*</td>
<td style="width: 139px;" class="pl12 pb06 pr04">
<asp:Label ID="Label1" runat="server" Text="CNC Machine Location" Width="130px"></asp:Label></td>
<td align="left" class="pb06 pr04" style="width: 552px;" valign="middle">
<asp:DropDownList ID="ddLocation" runat="server">
</asp:DropDownList>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<asp:Label ID="lblasymessage" runat="server" Text="Uploading bom & excel data..."
Font-Names="Times New Roman" ForeColor="ActiveCaption"></asp:Label><img src="../Images/spinner.gif"
alt="" />
</ProgressTemplate>
</asp:UpdateProgress>
</td>
</tr>
<tr>
<td style="width: 8px">
</td>
<td style="width: 139px">
<asp:Label ID="lblMsg" runat="server" Font-Bold="True" ForeColor="Maroon"></asp:Label></td>
<td align="left" style="width: 552px">
<asp:Button CssClass="btnBorder" ID="btnAdd" OnClick="btnAdd_Click" runat="server"
Text="Upload BOM & Excel Data" Width="186px" Height="25px" />
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td>
<table>
<asp:GridView ID="grdMaster" Visible="true" runat="server" Width="100%" >
</asp:GridView>
</table>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnAdd" />
<asp:PostBackTrigger ControlID="grdMaster" />
</Triggers>
</asp:UpdatePanel>
Regards,
PPCC
Last edited by mendhak; Apr 19th, 2010 at 03:20 PM.
Reason: Change of query
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|