更新进度无效 [英] update progress is not working

查看:105
本文介绍了更新进度无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <   asp:UpdatePanel     ID   =  UpdatePanel1     runat   =  server >  

< ContentTemplate >
< div id = div1 样式 = background-c olor:#000000 runat = 服务器 >
< asp:图片 ID = image1 runat = 服务器 AlternateText = Ledbulb ImageUrl < span class =code-keyword> = Images / Transparent_Bulb.png / >
; < asp:Image ID = image2 runat = server AlternateText = Ledbulb ImageUrl = Images / Transparent_Bulb.png / >

< asp:Image ID = image3 < span class =code-attribute> runat = server AlternateText = Ledbulb ImageUrl = Images / Transparent_Bulb.png / >

< asp:Image ID = image4 runat = server AlternateText = Ledbulb ImageUrl = Images / Transparent_Bulb.png / >
< br / >
< asp:Image ID = Image5 runat = < span class =code-keyword> server 宽度 = 100% ImageUrl = 〜/ Images / Road.PNG / >
< br / >

< asp:标签 ID = Label1 runat = server 文本 = PoleID:P1 ForeColor = 白色 字体粗体 = True > < / asp:标签 >

< br / >
< asp :标签 ID = Label5 runat = server 字体粗体 = ForeColor = 白色

文字 = DutyCapaciy: > < / asp:Label >
< asp:标签 ID = lblDC1 runat = server ForeColor = 白色 > NULL < / asp:标签 >

< / div > < br >
< < span class =code-leadattribute> asp:按钮 ID = Button2 runat = server 文字 = 显示 / >
< asp:TextBox ID < span class =code-keyword> = TextBox1 runat = server > < / asp:TextBox >
< / ContentTemplate >
< / asp:UpdatePane l >
< asp:UpdateProgress ID = UpdateProgress1 runat = 服务器 AssociatedUpdatePanelID = UpdatePanel1 DisplayAfter = 1 >
< ProgressTemplate > 正在进行更新...... .. < / ProgressTemplate >
< / asp:UpdateProgress >



在上面的代码更新进度中没有工作plz帮助我从这个< /b>.

解决方案

应用CSS样式。可能是控件存在并显示文本但位于意外位置。



试试这里提供的示例: MSDN :UpdateProgress类 [ ^ ]

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

    <ContentTemplate>
<div id="div1" style="background-color: #000000"  runat="server">
<asp:Image ID="image1" runat="server" AlternateText="Ledbulb" ImageUrl="Images/Transparent_Bulb.png" />
    ;<asp:Image ID="image2" runat="server" AlternateText="Ledbulb" ImageUrl="Images/Transparent_Bulb.png" />

<asp:Image ID="image3" runat="server" AlternateText="Ledbulb" ImageUrl="Images/Transparent_Bulb.png" />

<asp:Image ID="image4" runat="server" AlternateText="Ledbulb" ImageUrl="Images/Transparent_Bulb.png" />
    <br />
    <asp:Image ID="Image5" runat="server" Width="100%" ImageUrl="~/Images/Road.PNG" />
    <br />

    <asp:Label ID="Label1" runat="server" Text="PoleID : P1" ForeColor="White" Font-Bold="True"></asp:Label>

    <br />
    <asp:Label ID="Label5" runat="server" Font-Bold="True" ForeColor="White"

        Text="DutyCapaciy :"></asp:Label>
<asp:Label ID="lblDC1" runat="server" ForeColor="White" >NULL</asp:Label>

</div><br>
<asp:Button ID="Button2" runat="server" Text="Display"/>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="Server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="1" >
<ProgressTemplate>Update in Progress……..  </ProgressTemplate>
</asp:UpdateProgress>


in the above code update progress is not working plz help me from this.

解决方案

Apply the CSS styles. It might be that the control is present and showing the text but at an unexpected location.

Try out the example provided here: MSDN: UpdateProgress Class[^]


这篇关于更新进度无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆