Click here to Skip to main content
15,897,187 members

Comments by sayed farhan (Top 24 by date)

sayed farhan 2-Nov-13 4:09am View    
asp:UpdateProgress was not working properly so i have changed a logic
in dropdown on onchange event i have called a JavaScript in which iam showing a div which contain a progress bar image and in code behind after loading the dropdown i am hinding that div
.aspx page
JavaScript Method
function ShowDiv() {
document.getElementById('<%=divBlock.ClientID%>').style.display = "block";
}

Dropdown which is inside of gridview control

<asp:DropDownList ID="cmbClassType" runat="server" CssClass="cmbClass" AutoPostBack ="true" OnSelectedIndexChanged="cmbClassType_SelectedIndexChanged" onchange="ShowDiv();" >

<div class="blockUI" id="divBlock" runat="server" style="display: none;">
<div class="processMessage">
<img src="Images/processing.gif" alt="loading..." />
</div>
</div>

.cs page

divBlock.Style.Add("display", "none")

.css
.blockUI
{

position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
overflow: hidden;
padding: 0;
margin: 0;
background-color: #000;
filter: alpha(opacity=50);
opacity: 0.5;
z-index: 1000;

}
.processMessage
{
position: fixed;
top: 45%;
left: 45%;
padding: 10px;
width: 14%;
z-index: 1001;
background-color: Black;
border: solid 1px #000;
}
sayed farhan 1-Nov-13 2:38am View    
Thanx VICK i got the solution
sayed farhan 30-Oct-13 4:56am View    
here my problem is.
i have a two dropdown control in a gridview. on select indexchanged of first dropdown second dropdown is filled which take a time so i want to use asp:update progress but its give a error.
sayed farhan 30-Oct-13 4:53am View    
means?
sayed farhan 30-Oct-13 4:46am View    
Thanxs for reply.
but my dropdown is inside gridview so when i use your given approach its give me error
A control with ID 'cmbCoverType' could not be found for the trigger in UpdatePanel 'UpdatePanel2'.