如何在asp.net中建立新闻幻灯片 [英] how to build news slideshow in asp.net

查看:79
本文介绍了如何在asp.net中建立新闻幻灯片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我想在asp.net中制作新闻幻灯片
来自SQL Server数据库的幻灯片中将显示最后5张图像和新闻
请任何人都可以帮助我

hi all
i want to make news slideshow in asp.net
the last 5 image and news be displayed in slideshow from sql server database
please anyone can hepl me

推荐答案

这是我发现的第一个示例:http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/SlideShow/SlideShow.aspx [ http://www.asp.net [ http://en.lmgtfy.com/?q=slideshow+%22ASP .NET%22 [ ^ ].还是您被Google禁止了?

—SA
This is the first sample I found: http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/SlideShow/SlideShow.aspx[^].

Your best source of information is http://www.asp.net[^].

You will find a lot more: http://en.lmgtfy.com/?q=slideshow+%22ASP.NET%22[^]. Or are you banned at Google?

—SA


1-放空Image1

2-例如从数据集中的照片表中选择

3-
< pre lang ="c#">对于(int i = 0; i< 5; i ++)
{
for(int time = 0; time< 1000; time ++)
{}
Image1.ImageURL = ds.table [0] .rows [i] ["imgsource"].tostring();
}</pre>

4-此代码用于显示5幻灯片一次,如果您想连续查看,我认为您应该在ajax工具中使用update panal并在其中编写此代码
1- put empty Image1

2- select from photo table in data set for example

3-
<pre lang="c#"> for (int i=0;i<5;i++)
{
for(int time=0;time<1000;time++)
{}
Image1.ImageURL=ds.table[0].rows[i]["imgsource"].tostring();
}</pre>

4- this code for show 5 slide one time if you want to continuous view I think that you should use update panal in ajax tools and write this code in it


这篇关于如何在asp.net中建立新闻幻灯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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