TeamInfo.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
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 TeamInfo : System.Web.UI.Page
{
protected DataModule DM = new DataModule();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Insert")
{
GridView2.DataSourceID = "";
GridView2.DataBind();
}
}
protected void DetailsView1_ItemCommand(object sender, DetailsViewCommandEventArgs e)
{
GridView2.DataSourceID = "SqlDataSource1";
GridView2.DataBind();
}
protected void SqlDataSource1_Inserting(object sender, SqlDataSourceCommandEventArgs e)
{
if (e.Command.Parameters[0].Value == null)
{
Response.Write("<script>alert('组编号不为空,请重新输入!');</script>");
e.Cancel = true;
GridView2.DataSourceID = "";
GridView2.DataBind();
}
else if (e.Command.Parameters[1].Value == null)
{
Response.Write("<script>alert('组名不为空,请重新输入!');</script>");
e.Cancel = true;
GridView2.DataSourceID = "";
GridView2.DataBind();
}
else if (e.Command.Parameters[2].Value == null)
{
Response.Write("<script>alert('村编号不为空,请重新输入!');</script>");
e.Cancel = true;
GridView2.DataSourceID = "";
GridView2.DataBind();
}
else
后面还有 53 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
