Ejemplo n.º 1
0
 /// <summary>
 /// 获取关于我们文章
 /// </summary>
 private void GetAboutArticle()
 {
     DataTable table = null;
     DataBaseControl.ow_articleControl ow_articleControl = new DataBaseControl.ow_articleControl();
     try
     {
         table = ow_articleControl.GetTable(1);
         AboutArticle = table.Rows[0]["Content"].ToString();
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取关于我们文章
        /// </summary>
        private void GetAboutArticle()
        {
            DataTable table = null;

            DataBaseControl.ow_articleControl ow_articleControl = new DataBaseControl.ow_articleControl();
            try
            {
                table        = ow_articleControl.GetTable(1);
                AboutArticle = table.Rows[0]["Content"].ToString();
            }
            catch (Exception ex)
            {
            }
        }
 public void ProcessRequest(HttpContext context)
 {
     DataTable table=null;
     string jsondata = "";
     DataBaseControl.ow_articleControl ow_articleControl = new DataBaseControl.ow_articleControl();
     try
     {
         table = ow_articleControl.GetTable(1);
         jsondata = table.Rows[0]["Content"].ToString();
     }
     catch (Exception ex)
     {
         jsondata = ex.Message;
     }
     //jsondata += "其实是有数据滴";
     context.Response.ContentType = "text/plain";
     context.Response.Write(jsondata);
 }
Ejemplo n.º 4
0
        public void ProcessRequest(HttpContext context)
        {
            DataTable table    = null;
            string    jsondata = "";

            DataBaseControl.ow_articleControl ow_articleControl = new DataBaseControl.ow_articleControl();
            try
            {
                table    = ow_articleControl.GetTable(1);
                jsondata = table.Rows[0]["Content"].ToString();
            }
            catch (Exception ex)
            {
                jsondata = ex.Message;
            }
            //jsondata += "其实是有数据滴";
            context.Response.ContentType = "text/plain";
            context.Response.Write(jsondata);
        }