Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Ajax UpdateProgress not workingAjax UpdateProgress not working
Previous
 
Next
New Post
12/31/2009 10:51 PM
 

Hello. I am trying to make use of UpdateProgress control but I am not having success. I have an update panel called updPanel and an updateprogress control called updProgress. I have the update panel wrapped aroung an asp wizard control. As the user navigates from step to step I would like the image associated with the UpdateProgress control to display.

<asp:UpdatePanel ID="updPanel" runat="server">
    <contenttemplate>
<asp:Wizard

...the wizard control info is

</asp:Wizard>
</contenttemplate>
</asp:UpdatePanel>

<asp:UpdateProgress ID="UpdateProgress1" runat="server"
    AssociatedUpdatePanelID="updPanel">
    <ProgressTemplate>
    <img src='<%=ResolveClientUrl("~/images/simple.gif")%>' />
    </ProgressTemplate>
</asp:UpdateProgress>

I am running 5.x so check for Dotnenuke.Framework.AJAX.IsInstalled is not necessary. I have set my delay in the ActiveStepChangedEvent

System.Threading.Thread.Sleep(2000) but I cant get it to to display the updateprogress control...Any help would be appreciated.

Thank you

 
New Post
1/13/2010 5:06 AM
 

hi , i had the same problem and i solved it , add the following code in page load handler  it is working great for me  :

                Dim csname1 As String = "asyncUpdateProgress"
                Dim cstype As Type = Me.Page.GetType()
                If Not Me.Page.IsClientScriptBlockRegistered(csname1) Then
                    Dim scriptString As String = "var prm = Sys.WebForms.PageRequestManager.getInstance();"
                    scriptString += "function CancelAsyncPostBack() {"
                    scriptString += "if (prm.get_isInAsyncPostBack()) {"
                    scriptString += "prm.abortPostBack();"
                    scriptString += " }"
                    scriptString += "}"
                    scriptString += "prm.add_initializeRequest(InitializeRequest);"
                    scriptString += "prm.add_endRequest(EndRequest);"
                    scriptString += "var postBackElement;"
                    scriptString += "function InitializeRequest(sender, args) {"
                    scriptString += "if (prm.get_isInAsyncPostBack()) {"
                    scriptString += "args.set_cancel(true);"
                    scriptString += "}"
                    scriptString += " else"
                    scriptString += "{"
                    scriptString += "postBackElement = args.get_postBackElement();"
                    ' scriptString += "if (postBackElement.id == 'Panel1Trigger') {"
                    scriptString += " $get('" + UpdateProgress1.ClientID + "').style.display = 'block';                "
                    'scriptString += " }"
                    scriptString += " }"
                    scriptString += "}"
                    scriptString += "function EndRequest(sender, args) {"
                    'scriptString += "if (postBackElement.id == 'Panel1Trigger') {"
                    scriptString += "$get('" + UpdateProgress1.ClientID + "').style.display = 'none';"
                    ' scriptString += "}"
                    scriptString += "}                       "
                    '"<script language=""JavaScript""> function DoClick() {"
                    ' scriptString += "myForm.show.value='Welcome to Microsoft .NET'}"
                    ' scriptString += ""
                    'scriptString += "</script>"
                    ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType(), csname1, scriptString, True)
                End If
                ScriptManager.GetCurrent(Me.Page).AsyncPostBackTimeout = 300

 

waiting your feedback

 
New Post
5/1/2010 2:19 PM
 

Thank you it works...sorry I did not respond sooner. Registering the script each time the page is loaded fixed the problem. Thank you

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Ajax UpdateProgress not workingAjax UpdateProgress not working


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out