contact.aspx.cs

来自「一个开源企业网站」· CS 代码 · 共 43 行

CS
43
字号
using System;
using System.Data;
using System.Data.OleDb;
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;

public partial class Contact : System.Web.UI.Page
{

    public string Titlep;
    public string Descriptionp;
    public string Keywordsp;
    protected void Page_Load(object sender, EventArgs e)
    {
      
        GetContent contact=new GetContent ();
        OleDbDataReader dr = contact.GetCon();
        while (dr.Read())
        {
            this.LabContact.Text = dr["Contact"].ToString();
        }
        dr.Close();
        //title,des,con
        GetContent drt = new GetContent();
        OleDbDataReader drf = drt.GetTDC();
        while (drf.Read())
        {
            this.Titlep = drf["Title"].ToString();
            this.Descriptionp = drf["Description"].ToString();
            this.Keywordsp = drf["Keywords"].ToString();
        }
        drf.Close();
    }


}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?