📄 usermycom_up.aspx.cs
字号:
//======================================================
//== (c)2008 aspxcms inc by NeTCMS v1.0 ==
//== Forum:bbs.aspxcms.com ==
//== Website:www.aspxcms.com ==
//======================================================
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 NetCMS.Content;
public partial class usermycom_up : NetCMS.Web.UI.ManagePage
{
public usermycom_up()
{
Authority_Code = "U035";
}
Mycom myc = new Mycom();
protected void Page_Load(object sender, EventArgs e)
{
Response.CacheControl = "no-cache";
string Commid =Request.QueryString["Commid"];
DataTable dt = myc.sel_apiCommentary(Commid,0);
this.TitleBox.Text=dt.Rows[0]["Title"].ToString();
this.ContentBox.Text=dt.Rows[0]["Content"].ToString();
}
protected void shortCutsubmit(object sender, EventArgs e)
{
if (Page.IsValid)//判断是否通过验证
{
string Title = string.Empty;//Request.Form["TitleBox"];
string Contents=Request.Form["ContentBox"].ToString();
if (Contents.Length > 200)
{
PageError("内容最多200个字符", "javascript:history()");
}
DateTime CreatTime = DateTime.Now;
string Commid = Request.QueryString["Commid"];
if (myc.Update(Title, Contents, CreatTime, Commid) == 0)
{
PageError("修改错误", "usermycom.aspx");
}
else
{
PageRight("修改成功", "usermycom.aspx");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -