Problem in asp.net ajax updatepanel progress
-
Hi Dear, I've a serious problem, that is: I've three asp:Contents in my content page. Content1 for head, Content2 is activated when user is logged in; By contrast, Content3 is for anonymous user. In my program asp:UpdatePanel works properly in both content(Content2 & Content3). asp:UpdateProgress works properly in Content3(used for anonymous user) but doesn't work for Content2(used for logged in user)
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<%=DateTime.Now.ToLongTimeString() %>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="UpdateButton_Click"/>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
<ProgressTemplate>
<img alt="Loading..." src="../Images/ajax-loader.gif" />
Please wait...
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <%=DateTime.Now.ToLongTimeString() %> <asp:Button ID="UpdateButton" runat="server" Text="Button" OnClick="UpdateButton\_Click" /> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1"> <ProgressTemplate> <img alt="Loading..." src="../Images/ajax-loader.gif" /> Please wait... </ProgressTemplate> </asp:UpdateProgress>
</asp:Content>
I don't understand which is my fault. Could you help me?
shahdat
-
Hi Dear, I've a serious problem, that is: I've three asp:Contents in my content page. Content1 for head, Content2 is activated when user is logged in; By contrast, Content3 is for anonymous user. In my program asp:UpdatePanel works properly in both content(Content2 & Content3). asp:UpdateProgress works properly in Content3(used for anonymous user) but doesn't work for Content2(used for logged in user)
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<%=DateTime.Now.ToLongTimeString() %>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="UpdateButton_Click"/>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
<ProgressTemplate>
<img alt="Loading..." src="../Images/ajax-loader.gif" />
Please wait...
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <%=DateTime.Now.ToLongTimeString() %> <asp:Button ID="UpdateButton" runat="server" Text="Button" OnClick="UpdateButton\_Click" /> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1"> <ProgressTemplate> <img alt="Loading..." src="../Images/ajax-loader.gif" /> Please wait... </ProgressTemplate> </asp:UpdateProgress>
</asp:Content>
I don't understand which is my fault. Could you help me?
shahdat
Plz avoid double posting. :-D
Arun Jacob http://codepronet.blogspot.com/
-
Hi Dear, I've a serious problem, that is: I've three asp:Contents in my content page. Content1 for head, Content2 is activated when user is logged in; By contrast, Content3 is for anonymous user. In my program asp:UpdatePanel works properly in both content(Content2 & Content3). asp:UpdateProgress works properly in Content3(used for anonymous user) but doesn't work for Content2(used for logged in user)
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<%=DateTime.Now.ToLongTimeString() %>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="UpdateButton_Click"/>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
<ProgressTemplate>
<img alt="Loading..." src="../Images/ajax-loader.gif" />
Please wait...
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <%=DateTime.Now.ToLongTimeString() %> <asp:Button ID="UpdateButton" runat="server" Text="Button" OnClick="UpdateButton\_Click" /> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1"> <ProgressTemplate> <img alt="Loading..." src="../Images/ajax-loader.gif" /> Please wait... </ProgressTemplate> </asp:UpdateProgress>
</asp:Content>
I don't understand which is my fault. Could you help me?
shahdat
Cross Post will not help you to get answer faster.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Plz avoid double posting. :-D
Arun Jacob http://codepronet.blogspot.com/
OK boss, I am highly worried about my problem. But I don't get any answer yet within 9 hours ago. Plz help me. If it's not beyond your capacity.
shahdat
-
Hi Dear, I've a serious problem, that is: I've three asp:Contents in my content page. Content1 for head, Content2 is activated when user is logged in; By contrast, Content3 is for anonymous user. In my program asp:UpdatePanel works properly in both content(Content2 & Content3). asp:UpdateProgress works properly in Content3(used for anonymous user) but doesn't work for Content2(used for logged in user)
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<%=DateTime.Now.ToLongTimeString() %>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="UpdateButton_Click"/>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
<ProgressTemplate>
<img alt="Loading..." src="../Images/ajax-loader.gif" />
Please wait...
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <%=DateTime.Now.ToLongTimeString() %> <asp:Button ID="UpdateButton" runat="server" Text="Button" OnClick="UpdateButton\_Click" /> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1"> <ProgressTemplate> <img alt="Loading..." src="../Images/ajax-loader.gif" /> Please wait... </ProgressTemplate> </asp:UpdateProgress>
</asp:Content>
I don't understand which is my fault. Could you help me?
shahdat
I am answering you over here, because, It is better readable than the last one.
MD. SHAHDAT HOSAIN wrote:
but doesn't work for Content2(used for logged in user)
How did you think, its not working ? Are you getting any specific error ? Yor code seems like good. So, give us little bit details on your problem/error .
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Cross Post will not help you to get answer faster.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Yes I will remain later. Plz answer me
shahdat
-
Yes I will remain later. Plz answer me
shahdat
I have answered. Please check.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
I am answering you over here, because, It is better readable than the last one.
MD. SHAHDAT HOSAIN wrote:
but doesn't work for Content2(used for logged in user)
How did you think, its not working ? Are you getting any specific error ? Yor code seems like good. So, give us little bit details on your problem/error .
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Thanks a lot No specific error show from compiler. When I click update button, page is partially updated. But progressing message (with Image) never show for a logged in user. Interest that their is no problem for anonymous user. I tall you again In my program the Content2 is activated only for logged in user. Is it problem?
shahdat