Backup/LMControl/(未用储备)/UserInterfaceControl.ascx.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.Windows.Forms; //需要通过“添加引用”找到并添加,然后才能using
public partial class UserFaceControl_UserInterfaceControl : System.Web.UI.UserControl
{
//LeaveMessagePara LMP = new LeaveMessagePara();
//protected void Page_Load(object sender, EventArgs e)
//{
// Response.Write("<script></script>");
// LMBind();
// //TBcontents.Attributes.Add("onkeydown", "if(event.keyCode == 13){document.all[Submit].click();event.returnValue=false;}");
// //TBcontents.Attributes.Add("onkeydown", "CtrlEnter('Submit');");
//}
//protected void Submit_Click(object sender, EventArgs e)
//{
// if (TBuser.Text == "" || TBQQMSN.Text == "" || TBcontents.Text == "")
// Response.Write("<Script Language=JavaScript>alert(\"提示:用户名、QQ/MSN、留言信息3项必填。\")</Script>");
// else
// {
// LMP.ID = AutoCreateID.NewID();
// LMP.User = FormatString.FormatStr(TBuser.Text);
// LMP.QQMSN = FormatString.FormatStr(TBQQMSN.Text);
// LMP.Title = FormatString.FormatStr(TBtitle.Text);
// LMP.Contents = FormatString.FormatStr(TBcontents.Text);
// LMP.SubmitTime = DateTime.Now;
// if (LMManage.AddNewLeaveMessage(LMP))
// {
// TBtitle.Text = "";
// TBcontents.Text = "";
// LMBind();
// }
// else Response.Write("Ex: " + DBControl.DBExceptionEvent());
// }
//}
//protected void LMBind()
//{
// LeaveMessageList.DataSource = LMManage.GetLeaveMessage(15);
// LeaveMessageList.DataBind();
//}
//protected void LeaveMessageList_ItemCommand(object sender, DataListCommandEventArgs e)
//{
// if (TBuser.Text == "")
// Response.Write("<Script Language=JavaScript>alert(\"提示:回复他人留言,你必须在下面的留言框输入您的用户名。\")</Script>");
// else
// {
// //用变量保存“回复”按键所映射的相应留言的ID(参看LinkButton的CommandName属性)
后面还有 10 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
