c#可以取数据库里的值写入JS文件吗?
banner.js如下:
var marqueeContent=new Array();
marqueeContent[0]='<a href=http://www.blueidea.com/updatelist.asp target=_blank>站点最新更新六十条</a>';
marqueeContent[1]='<a href=http://www.blueidea.com/updatelist.asp target=_blank>站点最新更新六十条</a>';
marqueeContent[2]='<A href=http://www.blueidea.com/tech/web/2003/298.asp target=_blank>HTML 初学者指南</a>';
marqueeContent[3]='<A href=http://www.blueidea.com/download/product/2004/2329.asp target=_blank>Access to Sql 脚本编写器</a>';
marqueeContent[4]='<A href=http://www.blueidea.com/tech/graph/2004/2346.asp target=_blank>Firewoks 营造残破纹理</a>';
marqueeContent[5]='<A href=http://www.blueidea.com/tech/graph/2004/2338.asp target=_blank>“反转负冲”人像处理一例</a>';
marqueeContent[6]='<A href=http://www.blueidea.com/tech/multimedia/2004/2345.asp target=_blank>浅析三维全景</a>';
marqueeContent[7]='<A href=http://www.blueidea.com/tech/program/2004/2344.asp target=_blank>javascript 的几种排序方法</a>';
marqueeContent[8]='<A href=http://www.blueidea.com/news/game/2004/2343.asp target=_blank>博客中国 - 博客公社征集模板</a>';
marqueeContent[9]='<A href=http://www.blueidea.com/news/other/2004/2342.asp target=_blank>视觉同盟设计竞赛作品欣赏 一</a>';
marqueeContent[10]='<A href=http://www.blueidea.com/news/other/2004/2321.asp target=_blank>Gmail 已正式支持 POP3</a>';
marqueeContent[11]='<A href=http://www.blueidea.com/download/site/2004/2341.asp target=_blank>bp.com</a>';
marqueeContent[12]='<A href=http://www.blueidea.com/column/member/2004/2340.asp target=_blank>程序员的七种武器</a>';
marqueeContent[13]='<A href=http://www.blueidea.com/computer/net/2004/2339.asp target=_blank>全方位了解服务器 CPU</a>';
//////////////////////////
现在想这些广告代码来自数据库,如何实现用C#取出来,并写入JS,达到滚动广告的效果。