Also what do you mean by dynamic controls.. Are you creating these in your code behind?? And is the code under the Click event is getting executed ..??
Set the button as Triggers and check if it works. Also because you are creting the controls in the code behind make sure you create them on every postback.. After doing it try this once
thank you
sushanth009 for you kind reply. . I am creating controls on page init. And if you create in page init controls are retained on every post back. There is a small change in my design. Now i moved save and cancel outside the update panel... and i have a file
upload control outside this update panel. By adding trigger my file upload control is not working... flupResume.HasFile property returns false in code behind..
Mark this post as answer if it helps you!!!
Regards
Sangamesh Belawatgi,
Software Developer,
Bangalore - INDIA
heyitsme
Participant
1135 Points
410 Posts
Update progress not appearing
Jul 09, 2012 10:58 AM|LINK
Here is my code. I am creating some dynamic controls and adding into placeholder. Update progress is not appearing on click of btnSave.
<asp:Content ID="Content1" ContentPlaceHolderID="CntntPlceHldrMstr" runat="Server"> <asp:UpdatePanel ID="updPnl" runat="server"> <ContentTemplate> <asp:UpdateProgress ID="UpdateProgress" runat="server"> <ProgressTemplate> <asp:Panel ID="PaneProgcust" runat="server"> <asp:Label ID="lblload" Text="Please Wait..." runat="server" /> <img src="Images/LoadProg.gif" alt="" /></asp:Panel> </ProgressTemplate> </asp:UpdateProgress> <asp:Label ID="lblErrMsg" runat="server" Text="" ForeColor="red"></asp:Label> <asp:PlaceHolder ID="plcHldrMain" runat="server"></asp:PlaceHolder> <asp:Button ID="btnsave" runat="server" Text="Save" /> <asp:Button ID="Btncancel" runat="server" Text="Cancel" /> </ContentTemplate> </asp:UpdatePanel> </asp:Content>Regards
Sangamesh Belawatgi,
Software Developer,
Bangalore - INDIA
EhsanMubeen
Member
433 Points
100 Posts
Re: Update progress not appearing
Jul 09, 2012 11:33 AM|LINK
Try giving update panel Id in the update progress
<asp:UpdateProgress ID="UpdateProgress" runat ="server" associatedupdatepanelid="updPnl">
Mark As Answer if my reply helped you
Pray|Game|Code - My Way of Living
heyitsme
Participant
1135 Points
410 Posts
Re: Update progress not appearing
Jul 09, 2012 12:28 PM|LINK
not working
Regards
Sangamesh Belawatgi,
Software Developer,
Bangalore - INDIA
EhsanMubeen
Member
433 Points
100 Posts
Re: Update progress not appearing
Jul 09, 2012 12:37 PM|LINK
Mark As Answer if my reply helped you
Pray|Game|Code - My Way of Living
sushanth009
Contributor
6243 Points
1168 Posts
Re: Update progress not appearing
Jul 09, 2012 03:32 PM|LINK
Try this
<asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="updPnl"> <ProgressTemplate> <asp:Panel ID="PaneProgcust" runat="server"> <asp:Label ID="lblload" Text="Please Wait..." runat="server" /> <img src="Images/LoadProg.gif" alt="" /></asp:Panel> </ProgressTemplate> </asp:UpdateProgress> <asp:Content ID="Content1" ContentPlaceHolderID="CntntPlceHldrMstr" runat="Server"> <asp:UpdatePanel ID="updPnl" runat="server"> <ContentTemplate> <asp:Label ID="lblErrMsg" runat="server" Text="" ForeColor="red"></asp:Label> <asp:PlaceHolder ID="plcHldrMain" runat="server"></asp:PlaceHolder> <asp:Button ID="btnsave" runat="server" Text="Save" /> <asp:Button ID="Btncancel" runat="server" Text="Cancel" /> </ContentTemplate> </asp:UpdatePanel> </asp:Content>Also what do you mean by dynamic controls.. Are you creating these in your code behind?? And is the code under the Click event is getting executed ..??
chetan.sarod...
All-Star
65839 Points
11163 Posts
Re: Update progress not appearing
Jul 10, 2012 03:39 AM|LINK
The problem is that the control you want to trigger the UpdateProgress control is not inside the UpdatePanel.
See post here: http://smarx.com/posts/why-the-updateprogress-wont-display.aspx for an explanation of why that doesn't work.
http://mattberseth.com/blog/2007/07/modalpopup_as_an_ajax_progress.html
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
heyitsme
Participant
1135 Points
410 Posts
Re: Update progress not appearing
Jul 10, 2012 04:36 AM|LINK
@sushanth009: Yes, i am creating controls in code behind and also the code under the click event is getting fired and working fine.
Regards
Sangamesh Belawatgi,
Software Developer,
Bangalore - INDIA
heyitsme
Participant
1135 Points
410 Posts
Re: Update progress not appearing
Jul 10, 2012 04:39 AM|LINK
@chetan.sarode: control you want to trigger the update progress ... you mean to save btnSave? its already within update panel ... right
Regards
Sangamesh Belawatgi,
Software Developer,
Bangalore - INDIA
sushanth009
Contributor
6243 Points
1168 Posts
Re: Update progress not appearing
Jul 10, 2012 07:55 AM|LINK
Set the button as Triggers and check if it works. Also because you are creting the controls in the code behind make sure you create them on every postback.. After doing it try this once
<asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="updPnl"> <ProgressTemplate> <asp:Panel ID="PaneProgcust" runat="server"> <asp:Label ID="lblload" Text="Please Wait..." runat="server" /> <img src="Images/LoadProg.gif" alt="" /></asp:Panel> </ProgressTemplate> </asp:UpdateProgress> <asp:Content ID="Content1" ContentPlaceHolderID="CntntPlceHldrMstr" runat="Server" UpdateMode="Conditional"> <asp:UpdatePanel ID="updPnl" runat="server"> <ContentTemplate> <asp:Label ID="lblErrMsg" runat="server" Text="" ForeColor="red"></asp:Label> <asp:PlaceHolder ID="plcHldrMain" runat="server"></asp:PlaceHolder> <asp:Button ID="btnsave" runat="server" Text="Save" /> <asp:Button ID="Btncancel" runat="server" Text="Cancel" /> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnsave" /> <asp:AsyncPostBackTrigger ControlID="Btncancel" /> </Triggers> </asp:UpdatePanel> </asp:Content>heyitsme
Participant
1135 Points
410 Posts
Re: Update progress not appearing
Jul 10, 2012 09:43 AM|LINK
thank you sushanth009 for you kind reply. . I am creating controls on page init. And if you create in page init controls are retained on every post back. There is a small change in my design. Now i moved save and cancel outside the update panel... and i have a file upload control outside this update panel. By adding trigger my file upload control is not working... flupResume.HasFile property returns false in code behind..
Regards
Sangamesh Belawatgi,
Software Developer,
Bangalore - INDIA