您好,使用RadToolTip即可。RadToolTip在使用自定义asp.net .ashx图像处理程序时未显示
<asp:Image ID="imgMain" runat="server"/>
<telerik:RadToolTip ID="RadToolTip2" runat="server" TargetControlID="imgMain" Width="400px" RelativeTo="Element" EnableShadow="true" Position="BottomCenter" Animation="Slide" AnimationDuration="300" ShowDelay="200" Skin="Vista" HideEvent="LeaveToolTip">
</telerik:RadToolTip>
林还增加了在运行时RadToolTip内部的图像,该图像的imageURL表示通过使用该站点内和工程罚款我自己的自定义图像处理程序设置。
当用户将鼠标悬停在'imgMain'上时,RadToolTip应显示相同的图像,但大小不同,但所有即时消息都显示为标题的RadToolTip。 如果我将图片网址硬编码到RadToolTip里面的图像中,显示的很好,所以我知道它对我的ImageHandler没有问题。
从RadToolTip中的图像处理程序动态显示图像是否存在任何已知问题?
我的服务器端代码低于
imgMain.ImageUrl = String.Format("~/dbimagehandler.ashx?record=product&empty=showt&imageno=1&recno=-1&wid={0}&hgt={1}&productid={2}", "188", "196", this.ProductId)
imgMain.AlternateText = ds.Ds.Tables["Table"].Rows[0]["Title"].ToString();
imgMain.ToolTip = ds.Ds.Tables["Table"].Rows[0]["Title"].ToString();
RadToolTip2.TargetControlID = imgMain.ID;
Image imgsmall = new Image();
imgsmall.ImageUrl = String.Format("~/dbimagehandler.ashx?record=product&empty=showt&imageno=1amprecno=-1&wid={0}&hgt={1}&productid={2}", "376","392", this.ProductId);
RadToolTip2.Controls.Add(imgsmall);
任何帮助,在此将大大apreciated。
我在页面加载事件中添加图像。我已经通过手动导航到.ashx页面检查了图像处理程序正在处理的图像。我也使用Firbug来检查RadToolTip,并且图像在那里,当我在它上面时,它显示了萤火虫中的图像,但RadTooilTip仍然显示为:无。 –