Hi I was using the updatepanel to update the current status.While updating it also load the image inside div tag everytime. So how to load update panel without load the image???
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<div class="icon text-center" id="lbl_status_icon" >
<div class="loader" runat="server" id="Div1" style="height:50px;width:50px;"></div>
<div class="loadernull" runat="server" id="Div2" style="height:50px;width:50px;"></div>
<asp:Image ID="Image1" runat="server" Visible="false"/>
</div>
</ContentTemplate>
<Triggers >
<asp:AsyncPostBackTrigger ControlID="timer" EventName="tick" />
</Triggers>
</asp:UpdatePanel>
set these attributes:
ChildrenAsTriggers="false" UpdateMode="Conditional"
then :
protected void yourbutton_Click(object sender, EventArgs e)
{
// your logics
// ....
upl1.Update();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.