求助大家帮我解释下以下代码!!!具体意思,功能,万分感谢

mingguo617 2012-09-10 09:23:17
protected internal void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!this.Page.ClientScript.IsClientScriptIncludeRegistered(this.Page.GetType(), "js_DeleteConfirm"))
this.Page.ClientScript.RegisterClientScriptInclude(this.Page.GetType(), "js_DeleteConfirm", "../js/Confirm.js");
this.btnDel.Attributes["OnClick"] = "return DeleteConfirm();";
if (Request.UrlReferrer != null)
ViewState["UrlReferrer"] = Request.UrlReferrer.ToString();

OraDao ora = new OraDao(System.Configuration.ConfigurationManager.AppSettings["dycost"]);
string sql = " select * from vw_code_anslysedata t where code_anslysedata='" + Request.QueryString["dpt"] + "'";
DataView dv = ora.Query(sql);
this.txtAnslyseData.Value = dv.Table.Rows[0]["ANSLYSEDATA"];
this.txtDepartment.Value = dv.Table.Rows[0]["DEPARTMENT"];
this.txtQuarter.Value = Request.QueryString["year"] + "-" + Request.QueryString["quarter"];
string strContents = ora.ReadLob("select CONTENTS from VW_PRO_ANSLYSE where code_anslysedata='" + Request.QueryString["dpt"] + "' and nyear='" + Request.QueryString["year"] + "' and nquarter='" + Request.QueryString["quarter"] + "' ");
if (strContents != null && strContents.Length > 2)
{
this.btn_Save.Text = "修改";
this.FCKeditor3.Value = strContents.Replace("''", "'");
}
}

}
...全文
9757 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
bdmh 2012-09-10
  • 打赏
  • 举报
回复
有什么好解释的,页面加载时,读数据库,你要不懂就去看msdn

17,740

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET Framework
社区管理员
  • .NET Framework社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧