Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem in asp.net ajax updatepanel progress

Problem in asp.net ajax updatepanel progress

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadminquestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shahdat Hosain
    wrote on last edited by
    #1

    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

    A A 3 Replies Last reply
    0
    • S Shahdat Hosain

      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

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      Plz avoid double posting. :-D

      Arun Jacob http://codepronet.blogspot.com/

      S 1 Reply Last reply
      0
      • S Shahdat Hosain

        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

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        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.

        S 1 Reply Last reply
        0
        • A Arun Jacob

          Plz avoid double posting. :-D

          Arun Jacob http://codepronet.blogspot.com/

          S Offline
          S Offline
          Shahdat Hosain
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • S Shahdat Hosain

            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

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            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.

            S 1 Reply Last reply
            0
            • A Abhijit Jana

              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.

              S Offline
              S Offline
              Shahdat Hosain
              wrote on last edited by
              #6

              Yes I will remain later. Plz answer me

              shahdat

              A 1 Reply Last reply
              0
              • S Shahdat Hosain

                Yes I will remain later. Plz answer me

                shahdat

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • A Abhijit Jana

                  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.

                  S Offline
                  S Offline
                  Shahdat Hosain
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups