WELOA.Web/yw/guestbook.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using WELOA.Model;
using LSBLL;
using System.IO;
namespace Web.yw
{
public partial class guestbook : System.Web.UI.Page
{
private DataSet ds = null;
private DateSetInformation dsinfo = null;
private LS_Login_Guestbook GuestbookBLL = new LS_Login_Guestbook();
private LS_Permission permissionBLL = new LS_Permission();
private int Record_Per_Page = 10;
private LS_Staff staffBLL = new LS_Staff();
private string[] strStaff;
protected void btAddGuestbook_Click(object sender, EventArgs e)
{
this.strStaff = this.staff();
string strNeirong = this.TextBox1.Text.Trim();
Polytechnic Polytechnic = this.GuestbookBLL.insguestbook(this.strStaff[0], this.strStaff[1], this.strStaff[2], strNeirong);
if (Polytechnic.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('添加留言异常,请联系管理员处理。')</script>");
}
else
{
if (Polytechnic.rowsnum > 0)
{
this.TextBox1.Text = "";
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('留言成功。')</script>");
}
this.viewList();
}
}
protected void btManage_Click(object sender, EventArgs e)
{
base.Response.Redirect("guestbook_manage.aspx");
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
for (int i = 0; i < this.GridView1.Rows.Count; i++)
{
if (e.Row.RowType == DataControlRowType.DataRow)
后面还有 97 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
