XueLiEdit.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;
public partial class XueLiEdit : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
int intRowsIndex = 0;
if (Request.QueryString["RowIndex_xueli"] != null)
{
intRowsIndex = int.Parse(Request.QueryString["RowIndex_xueli"].ToString());
Hid_RowIndex.Value = intRowsIndex.ToString();
DataSet ds_XueLi = new DataSet();
XueLi xueli = new XueLi();
ds_XueLi = xueli.GetDataSet("");
XueLi_Name.Text = ds_XueLi.Tables["T_XueLi"].Rows[intRowsIndex]["XueLi_Name"].ToString();
}
String strCommand = "";
if (Request.QueryString["Command"] != null)
{
strCommand = Request.QueryString["Command"].ToString();
Hid_Command.Value = strCommand;
}
}
}
protected void butSave_Click(object sender, EventArgs e)
{
XueLi xueli = new XueLi();
publicFunction pFunction = new publicFunction();
if (Hid_Command.Value == "INSERT")
{
String strXueLiName = XueLi_Name.Text;
String strXueLiCode = pFunction.GetChineseSpell(strXueLiName);
xueli.Field_XueLi_Code = strXueLiCode;
xueli.Field_XueLi_Name = strXueLiName;
String strReturn = xueli.XueLiInsert();
if (strReturn.Contains("ok"))
{
Response.Redirect("XueLiView.aspx");
}
}
else if (Hid_Command.Value == "UPDATE")
{
String strXueLiName = XueLi_Name.Text;
String strXueLiCode = pFunction.GetChineseSpell(strXueLiName);
xueli.Field_XueLi_Code = strXueLiCode;
xueli.Field_XueLi_Name = strXueLiName;
xueli.RowIndex_xueli = int.Parse(Hid_RowIndex.Value);
String strReturn = xueli.XueLiUpdate();
后面还有 15 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
