Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Progress bar issue

$
0
0

Hi could some one point out whats wrong with my code bellow

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProgressBar.aspx.cs" Inherits="ProgressBar" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
<script type="text/javascript">
    // Shows modal popup with progress indicator
    function showProgressControl() {
        // Pause for a moment to allow client validators to fire
        setTimeout('showProgressHelper()', 600);
    }
    function displaaler() {
    
        alert('ssss');
    }
    //Helper function to show progress indicator
    function showProgressHelper()
    {
        if(Page_IsValid)
        {
            $find('progressPopupBehaviorId').show();
        
            setTimeout('document.getElementById("<%=progressImage.ClientID%>").src = "<%=ResolveUrl("~/Images/ajax-loader.gif")%>"', 600);
        }
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager" runat="server" EnablePageMethods="true" />
     <div>
    <div>
        <br />
          <asp:Button ID="searchButton" runat="server" Text="Search" OnCommand="SearchButton_Command"
                CausesValidation="true" OnClientClick="JavaScript:showProgressControl();" />           
    </div>
    </div>
     <asp:Panel ID="progressPanel" runat="server" Style="background-color: #EFEFEF; padding: 10px 10px 10px 10px;
        border: solid #1A558F 2px; width: auto; height: auto; display: none;">
        <center>
            <b>Searching...</b><br />
            <asp:Image ID="progressImage" runat="server" Style="padding: 10px 0px 0px 0px;" ImageUrl="~/Images/ajax-loader.gif" />
        </center>
    </asp:Panel>
    
    <cc1:ModalPopupExtender ID="progressPopup" runat="server" TargetControlID="progressPanel"
        PopupControlID="progressPanel" BackgroundCssClass="modalBackground" BehaviorID="progressPopupBehaviorId">
    </cc1:ModalPopupExtender>
    </form>
</body>
</html>

code beind


    protected void SearchButton_Command(object sender, CommandEventArgs e)
    {
    //Empty
    }



progress bar arent apearing when i click on  : "searchButton"  button  


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>