学生信息修改页面的代码,有些代码看不懂
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;
public partial class biyesheng_updt2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
xingbie.Items.Add("男");
xingbie.Items.Add("女");
xueli.Items.Add("高中");
xueli.Items.Add("大专");
xueli.Items.Add("本科");
xueli.Items.Add("硕士");
xueli.Items.Add("博士");
jisuanjishuiping.Items.Add("一级");
jisuanjishuiping.Items.Add("二级");
jisuanjishuiping.Items.Add("三级");
jisuanjishuiping.Items.Add("程序员级");
jisuanjishuiping.Items.Add("工程师级");
yingyudengji.Items.Add("三级");
yingyudengji.Items.Add("四级");
yingyudengji.Items.Add("六级");
yingyudengji.Items.Add("八级");
string sql;
sql = "select * from biyesheng where xuehao='" + Session["username"].ToString().Trim()+"'";
getdata(sql);
}
}
private void getdata(string sql)
{
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
xuehao.Text = result.Tables[0].Rows[0]["xuehao"].ToString().Trim(); xingming.Text = result.Tables[0].Rows[0]["xingming"].ToString().Trim(); xingbie.Text = result.Tables[0].Rows[0][