当前位置: 首页>>代码示例>>C#>>正文


C# DBLayer.GetPageContent方法代码示例

本文整理汇总了C#中DBLayer.GetPageContent方法的典型用法代码示例。如果您正苦于以下问题:C# DBLayer.GetPageContent方法的具体用法?C# DBLayer.GetPageContent怎么用?C# DBLayer.GetPageContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DBLayer的用法示例。


在下文中一共展示了DBLayer.GetPageContent方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["CurrentUser"] == null)
         {
             Response.Redirect("Login.aspx");
         }
         if (CurrentPage != 0)
         {
             //BindData();
             DBLayer db = new DBLayer();
             DataSet ds = new DataSet();
             ds = db.GetPageContent(CurrentPage);
             if (ds.Tables[0].Rows.Count > 0)
             {
                 uiTextBoxTitle.Text = ds.Tables[0].Rows[0]["arTitle"].ToString();
                 uiFCKeditorContent.Value = Server.HtmlDecode(ds.Tables[0].Rows[0]["arContent"].ToString());
             }
             uiPanelCurrentPages.Visible = false;
             uiPanelCurrent.Visible = true;
         }
         else
         {
             Response.Redirect("AdminCP.aspx");
         }
     }
 }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:28,代码来源:EditPageContent.aspx.cs

示例2: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     DBLayer db = new DBLayer();
     DataSet ds = new DataSet();
     ds = db.GetPageContent(2);
     uiLabelTitle.Text = ds.Tables[0].Rows[0]["Title"].ToString();
     uiLiteralContent.Text = Server.HtmlDecode(ds.Tables[0].Rows[0]["Content"].ToString());
 }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:8,代码来源:default.aspx.cs

示例3: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DBLayer db = new DBLayer();
                DataSet ds = new DataSet();
                ds = db.GetPageContent(2);
                uiLiteralContent.Text = Server.HtmlDecode(ds.Tables[0].Rows[0]["arContent"].ToString());

            }
            RegisterStartupScript("menu", "<script type='text/javascript'>$(\"#m5\").addClass(\"selected\");</script>");
        }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:12,代码来源:ContactUs.aspx.cs

示例4: uiGridViewPages_RowCommand

        protected void uiGridViewPages_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "EditPages")
            {
                DBLayer db = new DBLayer();
                CurrentPage = Convert.ToInt32(e.CommandArgument);
                DataSet ds = db.GetPageContent(CurrentPage);
                uiTextBoxTitle.Text = ds.Tables[0].Rows[0]["Title"].ToString();
                uiTextBoxContent.Text = Server.HtmlDecode(ds.Tables[0].Rows[0]["Content"].ToString());
                uiPanelViewPages.Visible = false;
                uiPanelEdit.Visible = true;

            }
        }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:14,代码来源:EditPages.aspx.cs

示例5: uiGridViewPages_RowCommand

 protected void uiGridViewPages_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "EditPage")
     {
         int id = Convert.ToInt32(e.CommandArgument.ToString());
         CurrentPage = id;
         DBLayer db = new DBLayer();
         DataSet ds = new DataSet();
         ds = db.GetPageContent(id);
         if (ds.Tables[0].Rows.Count > 0)
         {
             uiTextBoxTitle.Text = ds.Tables[0].Rows[0]["arTitle"].ToString();
             uiFCKeditorContent.Value = Server.HtmlDecode(ds.Tables[0].Rows[0]["arContent"].ToString());
         }
         uiPanelCurrentPages.Visible = false;
         uiPanelCurrent.Visible = true;
     }
 }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:18,代码来源:EditPageContent.aspx.cs

示例6: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["PID"] != null && !string.IsNullOrEmpty(Request.QueryString["PID"].ToString()))
     {
         int id = Convert.ToInt32(Request.QueryString["PID"].ToString());
         DBLayer db = new DBLayer();
         DataSet ds = new DataSet();
         ds = db.GetPageContent(id);
         if (ds.Tables[0].Rows.Count != 0)
         {
             uiLabelTitle.Text = ds.Tables[0].Rows[0]["Title"].ToString();
             uiLiteralContent.Text = Server.HtmlDecode(ds.Tables[0].Rows[0]["Content"].ToString());
         }
         else
         {
             Response.Redirect("Node.aspx?PID=2");
         }
     }
     else
     {
         Response.Redirect("Node.aspx?PID=2");
     }
 }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:23,代码来源:Node.aspx.cs


注:本文中的DBLayer.GetPageContent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。