📄 forums_main_topic_input2.aspx.cs
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WhiteForum.forums
{
/// <summary>
/// forums_main_topic_input2 的摘要说明。
/// </summary>
public class forums_main_topic_input2 : BDStudioBase.FormBase
{
private string m_num="87";
protected System.Web.UI.WebControls.Label labMessage1;
protected System.Web.UI.WebControls.ImageButton IB_ModifyReturn;
protected System.Web.UI.WebControls.ImageButton IB_Return;
protected System.Web.UI.WebControls.Label labCurrentRow;
protected System.Web.UI.WebControls.TextBox In_TextBox9;
protected System.Web.UI.WebControls.TextBox In_TextBox1;
protected System.Web.UI.WebControls.TextBox In_TextBox6;
protected System.Web.UI.WebControls.TextBox In_TextBox5;
protected System.Web.UI.WebControls.TextBox In_TextBox2;
protected System.Web.UI.WebControls.TextBox In_TextBox3;
protected System.Web.UI.WebControls.TextBox In_TextBox4;
private COM_ForumReply COM_ForumReply=new COM_ForumReply();
private void Page_Load(object sender, System.EventArgs e)
{
/*定义窗体变量,根据设计报告改变*/
this.o_str_FormName = "forums_main_topic_input2";
this.o_str_FormUrl = "forums_main_topic_input2.aspx";
this.o_str_Pk2 =this.Param_get("type");
if(!Page.IsPostBack)
{
this.In_TextBox2.Text="自动增长";
this.In_TextBox3.Text=DateTime.Now.ToString();
this.In_TextBox4.Text=Session["userid"].ToString();
this.In_TextBox5.Text=Request.UserHostAddress.ToString();
//this.In_TextBox6.Text="4";
this.In_TextBox6.Text=this.Param_get("as_topicID");
}
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.IB_ModifyReturn.Click += new System.Web.UI.ImageClickEventHandler(this.IB_ModifyReturn_Click);
this.IB_Return.Click += new System.Web.UI.ImageClickEventHandler(this.IB_Return_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void DataSave(string InsertType)
{
DataSet dsData=this.SetFaceDataToDataSet(m_num,"InputFace",this);
//this.DataGrid1.DataSource=dsData;
//this.DataGrid1.DataBind();
string sReturn=string.Empty;
this.COM_ForumReply.InsertData(dsData,InsertType,ref sReturn);
this.labMessage1.Text=sReturn;
}
// private void buttonSendReturn_Click(object sender, System.EventArgs e)
// {
// this.DataSave("0");
// if (this.labMessage1.Text == "增加成功")
// {
// Response.Redirect("forums_main_topic_display.aspx?as_pk="+this.In_TextBox6.Text);
// //this.ReturnToParent(this.o_str_FormName);
// }
//
// }
//
// private void buttonSendContinue_Click(object sender, System.EventArgs e)
// {
// this.DataSave("0");
// }
//
// private void buttonClear_Click(object sender, System.EventArgs e)
// {
// this.In_TextBox1.Text="";
// }
//
// private void buttonReturn_Click(object sender, System.EventArgs e)
// {
// Response.Redirect("forums_main_topic_display.aspx?as_pk="+this.In_TextBox6.Text);
//
// }
private void IB_ModifyReturn_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
this.DataSave("0");
if (this.labMessage1.Text == "增加成功")
{
Response.Redirect("forums_main_topic_display.aspx?as_pk="+this.In_TextBox6.Text+"&type="+this.o_str_Pk2);
//this.ReturnToParent(this.o_str_FormName);
}
}
private void IM_Clear_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
this.In_TextBox1.Text="";
}
private void IB_Return_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
Response.Redirect("forums_main_topic_display.aspx?as_pk="+this.In_TextBox6.Text+"&type="+this.o_str_Pk2);
}
private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
Response.Redirect("../forums/forums_main_public.aspx");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -