毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

asp.net+sql精品课程管理平台系统论文+源代码+答辩PPT 第4页

更新时间:2011-12-19:  来源:毕业论文
repeater2.DataSource = rdt;
        repeater2.DataBind();
     
        string str1 = "select top 6 id,name,pic from teachinfo";
        SqlDataAdapter rst1 = new SqlDataAdapter(str1, cn);
        DataSet rdt1 = new DataSet();
        rst1.Fill(rdt1);
        repeater1.DataSource = rdt1;
        repeater1.DataBind();

        string str2 = "select onedhid,onedhname from main where twodhid=23";
        SqlDataAdapter rst2 = new SqlDataAdapter(str2, cn);
        DataSet rdt2 = new DataSet();
        rst2.Fill(rdt2);
        repeater4.DataSource = rdt2;
        repeater4.DataBind();

string str3 = "select onedhid,onedhname from main where twodhid=9";
        SqlDataAdapter rst3 = new SqlDataAdapter(str3, cn);
        DataSet rdt3 = new DataSet();
        rst3.Fill(rdt3);
        repeater5.DataSource = rdt3;
        repeater5.DataBind();
        cn.Close();
        string h = DateTime.Now.Hour.ToString();//获取系统时间小时
        string m = DateTime.Now.Minute.ToString();//获取系统时间分钟论文网http://www.751com.cn/
        string s = DateTime.Now.Second.ToString();//获取系统时间秒
        Label1.Text = "当前时间是:" + h + "时" + m + "分" + s + "秒";
   
repeater控件代码:
protected void repeater1_ItemCommand1(object source, RepeaterCommandEventArgs e)
    {
    }
    protected void repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
    }
    protected void repeater4_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
    }
    protected void repeater5_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
    }   
  
4.2前台模块功能实现及代码:
1. 课程设置
如下图4.2所示:
 
图4.2  课程设置图
其主要代码如下:
protected void Page_Load(object sender, EventArgs e)
    {        if (!IsPostBack)
        {       
    string id = Request.QueryString["id"] + "";
                if (id== "")
                {
                    Response.Redirect("index.aspx");

上一页  [1] [2] [3] [4] [5] 下一页

asp.net+sql精品课程管理平台系统论文+源代码+答辩PPT 第4页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。