Jquery公告滚动

aspx 复制代码 代码如下:

公告:

后台Util/MainUtil.aspx.cs输出对应的 HTML 的数目 using System; using
System.Collections; using System.Configuration; using System.Data; using
System.Linq; using System.Web; using System.Web.Security; using
System.Web.UI; using System.Web.UI.HtmlControls; using
System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq; namespace Web.Util { public partial class
MainUtil : System.Web.UI.Page { protected void Page_Load(object sender,
EventArgs e) { try { int k = int.Parse(Request[“param”].ToString {
case 1: toOne(); break; case 2: toTwo(); break; default: break; } }
catch { } } private void toOne() { try { string st = String.Empty;
string companyName = Request[“nameparam”].ToString(); DataTable dt1 =
DBUtility.DbHelperSQL.Query Title,Id from 公告表 where TypeId=’2′ And
Creater='” + companyName + “‘order by CreatTime desc”).Tables[0]; for
(int i = 0; i < dt1.Rows.Count; i++卡塔尔 { //把布告做成超链接 st += “

” + dt1.Rows[i][“Title”].ToString() +
“%20+%20%22)

“; } showHtml; } catch { } } private void toTwo() { try { string st =
String.Empty; string companyName= Request[“nameparam”].ToString();
DataTable dt2= DBUtility.DbHelperSQL.Query Title,Id from 公告表 where Id
IN (select top 10 Id from 公告表 where TypeId=’2′ And
Creater='”+companyName+”‘order by CreatTime desc) order by CreatTime
asc”).Tables[0]; //把通知做成超链接 for (int i = 0; i <
dt2.Rows.Count; i++State of Qatar { st += “

” + dt2.Rows[i][“Title”].ToString() +
“%20+%20%22)

“; } showHtml; } catch { } } private void showHtml{ Response.ContentType
= “text/html”;//text/html,和application/json 都以出口格式
Response.Write; Response.Close(卡塔尔(قطر‎; } } }

发表评论

电子邮件地址不会被公开。 必填项已用*标注