UpdateProgress render display:inline option

UpdateProgress always seems to render the contents of <ProgressTemplate> on a new line (block).  Any simple way to have that render inline where it is placed?

============

Best soultion I could come up with was to use the following code:

<p><span class="progress">
  <atlas:UpdateProgress ID="updateProgress" runat="server">
    <ProgressTemplate>
        <img id="Img1" runat="server" src="~/Images/Progress.gif" /> Updating...
    </ProgressTemplate>
</atlas:UpdateProgress></span><asp:Button ID="testButton" runat="server" Text="Refresh" />
</p>  
span.progress
{
   position: absoulte;
   left: 100px;
}

============

 

I have it working without the inline,   a float: left; did the trick. 

span.progress div
{
    float:left;
}

============

Actually I have just tried enclosing the UpdateProgress with a span as so:-

<span class="progress">
    <atlas:UpdateProgress runat="server" ID="up1">
    <ProgressTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/wait.gif" />
    </ProgressTemplate>
    </atlas:UpdateProgress>
</span>
 and used
span.progress div
{
	display: inline;
}
 
which works fine (July CTP).

============

http://forums.asp.net/t/972473.aspx

posted @   emanlee  阅读(401)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
历史上的今天:
2008-08-06 安装silverlight 2过程中出现install.res.????.dll错误
点击右上角即可分享
微信分享提示