在网上看了许多能生成静态页的新闻系统,但基于asp.net的系统极少,闲下时间来自己写了一个,发出来,大家一起研究,代码没做什么优化,只是实现了功能
using system;using system.collections;using system.componentmodel;using system.data;using system.data.oledb;using system.drawing;using system.web;using system.web.sessionstate;using system.web.ui;using system.web.ui.webcontrols;using system.web.ui.htmlcontrols;using system.configuration; 【程序编程相关:Asp.net 2.0:Compile 】
【推荐阅读:vb.net中类的使用方法 】
private void page_load(object sender, system.eventargs e) { initialpages();// 在此处放置用户代码以初始化页面 } 【扩展信息:.Net数据库访问问题:已有打开的与此连】
namespace makehtmlfile{ /// <summary> /// makeallfiles 的摘要说明. /// </summary> public class makeallfiles : system.web.ui.page { public string strcon; public oledbconnection conn; public string strsql;
... 下一页