WebUI/KaoShengManage/KaoSheng_Insert.aspx.cs

(开头部分) 8KB

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

using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using BLL;
using Model;
public partial class KaoShengManage_KaoSheng_Update : System.Web.UI.Page
{
    private static string strCode="";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserName"] == null)
        {
            Response.Write("<script language=\"javascript\">top.location.href='../Error.aspx?info=未登录或登录超时';</script>");
            Response.End();
            return;
        }
        if (!IsPostBack)
        {
            try
            {
                List<SetTestMOD> stList = SetTestBLL.selectAllTestName();
                ddlSubject.Items.Clear();
                for (int i = 0; i < stList.Count; i++)
                {
                    ListItem li = new ListItem(stList[i].Title, stList[i].Title);
                    ddlSubject.Items.Add(li);
                }
                strCode = Request.QueryString["zkCode"];
                if (string.IsNullOrEmpty(strCode))
                {
                }
                else
                {

                    txtCode.Disabled = true;
                    KaoShengMOD ksmod = KaoShengBLL.selectKaoShengInfo(strCode);
                    ddlSubject.SelectedValue = ksmod.Subject;
                    txtCode.Value = strCode;
                    txtName.Text = ksmod.Name;
                    DropUser_Sex.SelectedValue = ksmod.Sex;
                    txtID.Text = ksmod.IDCard;
                    txtTel.Text = ksmod.Tel;
                    txtAddress.Text = ksmod.Address;
                    txtuser_Others.Text = ksmod.Beizhu;
                    ViewState["photoUrl"] = ksmod.PhotoUrl;
                    if (ksmod.PhotoUrl == "NoPhoto.jpg" || ksmod.PhotoUrl == "" || ksmod.PhotoUrl == null)
                    {
                        Imguser_photo.ImageUrl = "~/Images/NoPhoto.jpg";
                    }
后面还有 137 行代码,购买后查看完整代码

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

AI 解读 AI

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

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