生成靜態頁 批量或單個

2021-08-25 15:11:56 字數 1294 閱讀 4073

生成靜態頁的類,可以批量或者單個生成,(經過測試)

using system;

using system.collections.generic;

using system.text;

using system.net;

using system.io;

using system.web;

namespace jobfuntion

///

/// 生成企業資訊(單條)

///

/// 企業id

/// 生成單條企業資訊

public static int company(int id)

///

/// 生成企業資訊(批量)

///

/// 開始的id

/// 結束id

/// 批量生成企業資訊

public static int company(int beginid, int endid)

return 1;

}catch

}///

/// 生成簡歷資訊(單條)

///

/// 簡歷id

///

public static int invite(int id)

///

/// 生成個人簡歷(批量)

///

/// 開始id

/// 結束id

///

public static int invite(int beginid, int endid)

return 1;

}catch}}

}

protected void button1_click(object sender, eventargs e)

else

}protected void button2_click(object sender, eventargs e)

else

}protected void button3_click(object sender, eventargs e)

else }

protected void button4_click(object sender, eventargs e)

else

}protected void button5_click(object sender, eventargs e)

else }

生成靜態頁

先定義乙個staticfilecachemodule 實現ihttpmodule介面 定製beginrequest事件 再定義乙個類 要生成靜態頁面的繼承它就行了 將頁面內容輸出到瀏覽器 response.write pagecontent 當然不要忘在配置web.confing 用模板生成靜態頁 ...

php生成靜態頁

先建立一chtml資料庫 表名稱為bihtml create table bihtml id int 11 auto increment not null,szdtitle varchar 30 szdcontent text primary key id 在表中插入兩條記錄 insert into...

PHP生成靜態頁

最近作的乙個專案中用到了兩種用 php 生成靜態頁面的 方法 回想起當初自己還不知道如何生成靜態頁面的迷惘,以及看不懂高手寫的文章的痛苦,覺得自己有必要站出來為還不知道如何生成靜態頁的phper寫乙個通俗點文章,以幫助他們盡快掌握這個好東西。在我之前所見的文章中要不是用 堆砌空間就是用高手與高手交流...