• 大小: 1.02MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-03-18
  • 语言: C#
  • 标签: .net  选课系统  

资源简介

这是一个基于ASP.net的简单选课系统,界面简洁简单,非常适合初学者。

资源截图

代码片段和文件信息

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;
using System.Collections.Generic;


public partial class ChangePassword : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {

    }
    protected void Update_Click(object sender EventArgs e)
    {
        if (TextBoxstuID.Text != Session[“stuID“].ToString())
        {
            Response.Write(“ript>window.alert(‘请输入自己的学号!‘)ript>;“);
        }
        else if (TextBoxNewPwd.Text == ““)
        {
            Response.Write(“ript>window.alert(‘请输入密码!‘)ript>;“);
        }
        else
        {
            KeyValuePairject>[] inputParameters ={
            new KeyValuePairject>(“@stuID“TextBoxstuID.Text)
            new KeyValuePairject>(“@Password“TextBoxNewPwd.Text)
            };
            try
            {
                courseselect.CommonMethods.ExcuteStoredProcedure(“UpdatePassword“ inputParameters null);
                
             
            }
            catch
            {

                Response.Write(“ript>window.alert(‘修改出错!请检查存储过程参数是否正确!‘);ript>“);
                return;
            }
            Response.Write(“ript>window.alert(‘密码修改成功!‘);ript>“);
        }

    }
    protected void btnReturn_Click(object sender EventArgs e)
    {
        Response.Redirect(“Index.aspx“);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-04-30 23:04  CourseSelect\
     目录           0  2012-04-18 17:37  CourseSelect\App_Code\
     文件        3381  2011-04-29 14:21  CourseSelect\App_Code\CommonMethods.cs
     目录           0  2012-04-18 17:37  CourseSelect\App_Data\
     文件     3145728  2012-04-20 14:18  CourseSelect\App_Data\CourseSelectM.mdf
     文件     1048576  2012-04-20 14:18  CourseSelect\App_Data\CourseSelectM_Log.ldf
     文件        1710  2011-05-22 20:32  CourseSelect\ChangePassword.aspx
     文件        1725  2011-04-29 15:05  CourseSelect\ChangePassword.aspx.cs
     文件        3969  2011-05-04 23:12  CourseSelect\CourseSelect.aspx
     文件        2622  2011-05-09 15:48  CourseSelect\CourseSelect.aspx.cs
     文件        2644  2011-05-04 23:12  CourseSelect\CourseUpdate.aspx
     文件        1855  2011-05-09 15:49  CourseSelect\CourseUpdate.aspx.cs
     文件         943  2011-05-22 20:37  CourseSelect\Index.aspx
     文件         409  2011-04-27 20:22  CourseSelect\Index.aspx.cs
     文件        5435  2011-05-09 15:55  CourseSelect\Login.aspx
     文件        2099  2011-04-30 12:02  CourseSelect\Login.aspx.cs
     文件        3845  2012-04-20 14:05  CourseSelect\MasterPage1.master
     文件         418  2011-04-26 20:26  CourseSelect\MasterPage1.master.cs
     文件         544  2011-05-02 13:12  CourseSelect\Tip.aspx
     文件         536  2011-05-02 13:12  CourseSelect\Tip.aspx.cs
     文件        8045  2012-04-20 14:06  CourseSelect\Web.Config
     目录           0  2012-04-18 17:37  CourseSelect\css\
     文件       10318  2011-04-26 20:25  CourseSelect\css\base.css
     目录           0  2012-04-18 17:37  CourseSelect\images\
     文件       76885  2006-04-10 09:25  CourseSelect\images\banner-10.jpg
     文件       71234  2011-02-21 10:47  CourseSelect\images\banner.gif
     文件       43725  2009-04-16 00:00  CourseSelect\images\banner.jpg
     文件       17812  2011-05-04 22:57  CourseSelect\images\banner0.jpg
     文件        7258  2002-06-14 11:22  CourseSelect\images\bei.gif
     文件       22082  2009-04-16 00:00  CourseSelect\images\bg2.jpg
     文件       16968  2004-03-23 09:19  CourseSelect\images\bj.gif
............此处省略25个文件信息

评论

共有 条评论