滑块显示未显示所有图像 [英] Slider Show not showing all images
本文介绍了滑块显示未显示所有图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在以下代码中,除soap nut.jpg外,不会显示所有图像。图像没有滑落。任何一个指南都可以吗?
In the following code, all the images are not shown except 'soap nut.jpg'. Images are not getting slided. Can any one guide?
<table><tr><td><b>Name: </b>
<asp:Label ID="Label1" runat="server" Font-Bold="True"
ForeColor="#FF3300"></asp:Label></td></tr>
<tr><td>
<asp:Image ID="Image1" runat="server" Height="300px"
ImageUrl="~/soapnut.jpg"
style="top: 87px; left: 11px; position: absolute" Width="500px" />
<asp:SlideShowExtender ID="Image1_SlideShowExtender" runat="server"
Enabled="True"
PreviousButtonID="Button1"
NextButtonID="Button3"
PlayButtonID="Button2"
PlayButtonText="Play"
PlayInterval="300"
SlideShowServiceMethod="GetSlides"
SlideShowServicePath=""
StopButtonText="||"
TargetControlID="Image1"
UseContextKey="True"
ImageDescriptionLabelID="label2"
ImageTitleLabelID="Label1">
</asp:SlideShowExtender></td></tr>
<tr><td><b>
Description: </b>
<asp:Label ID="Label2" runat="server"
Font-Bold="True" ForeColor="#663300"></asp:Label>
</td></tr>
<tr><td>
<asp:Button ID="Button1" runat="server" Text="<<"
style="top: 402px; left: 171px; position: absolute; height: 26px;
width: 26px; bottom: 117px" /></td><td>
<asp:Button ID="Button2" runat="server" Text="Play" style="top: 403px; position: absolute;
height: 26px; width: 40px; left: 221px" /></td><td>
<asp:Button ID="Button3" runat="server" Text=">>" style="top: 403px; left: 284px; position: absolute; height: 26px;
width: 26px" /></td></tr></table></form>
[System.Web.Services.WebMethodAttribute(), System.Web.Script.
Services.ScriptMethodAttribute()]
public static AjaxControlToolkit.Slide[] GetSlides(string contextKey)
{
return new AjaxControlToolkit.Slide[]{
new AjaxControlToolkit.Slide("/good food logo.jpg", "Front", "Go Ahead"),
new AjaxControlToolkit.Slide("/calicut alva.jpg", "Baby", "Cute"),
new AjaxControlToolkit.Slide("/appumadi vadu.jpg", "Beautiful", "Most Precious"),
new AjaxControlToolkit.Slide("/thinai.jpg", "Fabulous", "Cool Eye"),
new AjaxControlToolkit.Slide("/soapnut.jpg", "Face", "Black and white"),
new AjaxControlToolkit.Slide("vadu.jpg", "Cute", "Hug Image"),
new AjaxControlToolkit.Slide("~/rose duds1.jpg", "Its Over", "The End"),
};
}
推荐答案
请遵循以下示例
http://www.dotnetcurry.com/showarticle.aspx?ID=287 [ ^ ]
http://www.aspdotnet-suresh.com/2011/03/ajax -slideshowextender-control-sample.html [ ^ ]
http://www.aspsnippets.com/forums/Articles/ASPNet-AJAX-SlideShow-Extender-control-Tutorial-with-Example.aspx 一> [ ^ ]
Follow these examples
http://www.dotnetcurry.com/showarticle.aspx?ID=287[^]
http://www.aspdotnet-suresh.com/2011/03/ajax-slideshowextender-control-sample.html[^]
http://www.aspsnippets.com/forums/Articles/ASPNet-AJAX-SlideShow-Extender-control-Tutorial-with-Example.aspx[^]
你不能使用jpg格式......使用png,gif格式
you can not use jpg formats ... use png, gif formats
这篇关于滑块显示未显示所有图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文