zxbm.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Maticsoft.Common;
using LTP.Accounts.Bus;
using System.Data;
public partial class zxbm : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["userid"] == null)
            {
                Maticsoft.Common.MessageBox.ShowAndRedirect(this, "请您登录!", "login.aspx");
            }
            string kcId = Request.QueryString["id"] + ""; 
            bindDate(kcId);

        }
    }

    /// <summary>
    /// 绑定班级
    /// </summary>
    private void bindDate(string strID)
    {
        KEPX.BLL.Course bll = new KEPX.BLL.Course();
        DataSet ds = bll.GetAllList();
        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            this.txtcourseId.DataTextField = "kcName";
            this.txtcourseId.DataValueField = "kcId";
            this.txtcourseId.DataSource = ds.Tables[0].DefaultView;
            this.txtcourseId.DataBind();
            this.txtcourseId.SelectedValue = strID;
        }
    }

    protected void btnSave_Click(object sender, EventArgs e)
    {

        string strErr = "";
        if (!PageValidate.IsNumber(txtcourseId.Text))
        {
            strErr += "预报课程格式错误!\\n";
        }
        if (this.txtname.Text.Trim().Length == 0)
        {
            strErr += "姓名不能为空!\\n";
        }
        if (this.txtlinkPhone.Text.Trim().Length == 0)
        {
            strErr += "联系电话不能为空!\\n";
        }
        if (this.txtEmail.Text.Trim().Length == 0)
后面还有 50 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。