studentManager/Myinfo.aspx.cs

(开头部分) 2KB

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

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.Text.RegularExpressions;
using System.Data.SqlClient;
using Mysqlserver;

public partial class studentManager_Myinfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            ddl_Binding();

         
        }


    }


    protected void ddl_Binding()
    {
        SqlServerDataBase db = new SqlServerDataBase();
        SqlConnection conn = db.DBconn();
        string sqlStr = "select a.*,b.className as  className from student_inf a,Class b where a.classID=b.classID and  a.studentName='" + Session["user_name"].ToString() + "' ";
        DataSet ds = db.Select(sqlStr, conn);
        if (ds.Tables[0].Rows.Count > 0)
        {
            TextBox1.Text = ds.Tables[0].Rows[0]["studentID"].ToString();

          TextBox2.Text = ds.Tables[0].Rows[0]["studentName"].ToString();

          TextBox3.Text = ds.Tables[0].Rows[0]["nation"].ToString();

          TextBox4.Text = ds.Tables[0].Rows[0]["sex"].ToString();
          TextBox5.Text = ds.Tables[0].Rows[0]["birthday"].ToString();

          TextBox6.Text = ds.Tables[0].Rows[0]["className"].ToString();
          TextBox7.Text = ds.Tables[0].Rows[0]["telephone"].ToString();
          TextBox8.Text = ds.Tables[0].Rows[0]["credithour"].ToString();
          TextBox9.Text = ds.Tables[0].Rows[0]["ru_date"].ToString();
          TextBox10.Text = ds.Tables[0].Rows[0]["address"].ToString();
       

        



        }

后面还有 20 行代码,购买后查看完整代码

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

AI 解读 AI

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

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