资源简介
在线音乐播放器,asp.net+sql server
代码片段和文件信息
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
if (!IsPostBack)
{
//调用自定义bindAudition方法,显示试听排行帮
bindAudition();
//调用自定义bindFashion方法,显示流行金曲
bindFashion();
//调用自定义bindOld方法,显示经典老歌
bindOld();
//调用自定义bindOccident方法,显示欧洲经典
bindOccident();
//调用自定义bindCampus方法,显示校园民谣
bindCampus();
}
}
//绑定GridView控件显示试听排行榜
protected void bindAudition()
{
string sqlSel = “select top 10 * from tb_musicInfo order by auditionSum desc“;
gvAudition.DataSource = dataOperate.getRows(sqlSel);
gvAudition.DataKeyNames = new string[] { “id“ };
gvAudition.DataBind();
}
//绑定GridView控件显示流行金曲
protected void bindFashion()
{
string sqlSel = “select top 7 * from tb_musicInfo where musicType=1 order by id desc “;
gvFashion.DataSource = dataOperate.getRows(sqlSel);
gvFashion.DataKeyNames = new string[] { “id“ };
gvFashion.DataBind();
}
//绑定GridView控件显示经典老歌
protected void bindOld()
{
string sqlSel = “select top 7 * from tb_musicInfo where musicType=2 order by id desc “;
gvOld.DataSource = dataOperate.getRows(sqlSel);
gvOld.DataKeyNames = new string[] { “id“ };
gvOld.DataBind();
}
//绑定GridView控件显示欧洲经典
protected void bindOccident()
{
string sqlSel = “select top 7 * from tb_musicInfo where musicType=3 order by id desc “;
gvOccident.DataSource = dataOperate.getRows(sqlSel);
gvOccident.DataKeyNames = new string[] { “id“ };
gvOccident.DataBind();
}
//绑定GridView控件显示校园民谣
protected void bindCampus()
{
string selSel = “select top 7 * from tb_musicInfo where musicType=4 order by id desc “;
gvCampus.DataSource = dataOperate.getRows(selSel);
gvCampus.DataKeyNames = new string[] { “id“ };
gvCampus.DataBind();
}
///
/// 全选或全部取消GridView控件中的所有复选框
///
/// GridView对象,需要设置的GridView控件
/// 布尔值变量,设置选中还是取消
protected void allSelect(GridView gv bool bl)
{
//判断传入的复选框对象是否为选中状态
if (bl)
{
//遍历传入的GridView对象
foreach (GridViewRow gvr in gv.Rows)
{
//设置GridView控件中的所有复选框为选中状态
((CheckBox)gvr.FindControl(“CheckBox1“)).Checked = false;
}
}
else
{
foreach (GridViewRow gvr in gv.Rows)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-03-27 15:31 在线音乐播放器\
目录 0 2013-03-27 15:31 在线音乐播放器\playMusic\
目录 0 2013-03-27 15:31 在线音乐播放器\playMusic\App_Code\
文件 3843 2011-03-25 13:49 在线音乐播放器\playMusic\App_Code\dataOperate.cs
目录 0 2013-03-27 15:31 在线音乐播放器\playMusic\App_Data\
文件 1835008 2011-03-31 20:06 在线音乐播放器\playMusic\App_Data\db_music_Data.MDF
文件 1572864 2011-03-31 20:06 在线音乐播放器\playMusic\App_Data\db_music_Log.LDF
目录 0 2013-03-27 15:31 在线音乐播放器\playMusic\css\
文件 3797 2008-05-26 09:42 在线音乐播放器\playMusic\css\css.css
目录 0 2013-03-27 15:31 在线音乐播放器\playMusic\images\
文件 4087 2008-08-06 17:08 在线音乐播放器\playMusic\images\000.gif
文件 11434 2008-08-07 10:08 在线音乐播放器\playMusic\images\001.GIF
文件 6468 2008-08-06 16:18 在线音乐播放器\playMusic\images\01.gif
文件 69329 2008-08-06 16:36 在线音乐播放器\playMusic\images\banner.jpg
文件 43664 2008-08-07 09:33 在线音乐播放器\playMusic\images\bbanner.GIF
文件 13352 2008-08-06 16:18 在线音乐播放器\playMusic\images\bg.jpg
文件 4801 2008-08-06 16:26 在线音乐播放器\playMusic\images\bg1.gif
文件 2538 2008-08-07 09:20 在线音乐播放器\playMusic\images\bof.GIF
文件 10894 2008-08-09 09:09 在线音乐播放器\playMusic\images\bt.jpg
文件 62083 2008-08-06 16:20 在线音乐播放器\playMusic\images\daoh.jpg
文件 1212 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_01.gif
文件 2657 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_02.gif
文件 3068 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_03.gif
文件 3377 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_04.gif
文件 3211 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_05.gif
文件 3098 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_06.gif
文件 2905 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_07.gif
文件 1990 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_08.gif
文件 3348 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_09.gif
文件 501 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_10.gif
文件 3454 2008-08-08 14:38 在线音乐播放器\playMusic\images\daohang_11.gif
............此处省略34个文件信息
相关资源
- Asp.net学生信息管理系统源码
- asp.net C#购物车源代码
- ASP.NET实验室预约管理系统
- 020ASP.NET车辆综合管理系统.zip
- c# 高校档案信息管理系统
- asp.net中c#做的躲避小游戏,希望大家
- ASP.NET C# 工资管理系统
- 一款漂亮的灯光闪烁的圣诞树(C# V
- c#在线考试系统(附源码)
- C#笔试题大全C#面试集合包括了,.ne
- ASP.NET客户管理系统(毕业设计 C#
- 在线求职系统(C#ASP.NET源码)
- .NET C# Custom Form Designer (附源碼)
- C#冒泡排序动态演示程序(看了就会)
- 酒店管理系统(c#.net源码)
- 从PLC循环读取到前台显示,并推送给
- asp.net 在线考试系统及论文
- winform实时获取网卡网速全部源码,获
- SignalR在线聊天(websocket)
- ASP.Net文件上传管理源码
- ArcGIS Runtime SDK for .NET
- C# .NET5.0(net core)基于WPF(XAML)开发
- Quartz.NET定时任务框架
- .net core 动态生成 Word文档(word Expor
- 《OA企业办公自动化》asp.net 源码(附
- .net 检测新版本-自动升级程序
- tcp和udp(Mina.net)
- asp.netc#开发规范
- 百度在线翻译API (使用)
- ADO.NET操作EXCEL
川公网安备 51152502000135号
评论
共有 条评论