第一步:在專案檔案裡建立db資料夾,在db資料夾裡建立db.xml文件。
db.xml結構只包含:
//--------------------begin--------------------//
1.messageadd.aspx
<%@ page language="c#" codebehind="messageadd.aspx.cs" autoeventwireup="false" inherits="xmlguest.messageadd" %>
messageadd.cs
using system;
using system.collections;
using system.***ponentmodel;
using system.data;
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.xml;
namespace xmlguest
#region web form designer generated code
override protected void oninit(eventargs e)
///
/// 設計器支援所需的方法 - 不要使用**編輯器修改
/// 此方法的內容。
///
private void initialize***ponent()
#endregion
2.messagelist.aspx
<%@ page language="c#" codebehind="messagelist.aspx.cs" autoeventwireup="false" inherits="xmlguest.messagelist" %>
姓名:
'>
時間:
'>
e-mail:
mailto:"+databinder.eval(container
, "dataitem.useremail").tostring() %>' text='<%# databinder.eval(container, "dataitem.useremail").tostring() %>'>
'>
messagelist.cs
using system;
using system.collections;
using system.***ponentmodel;
using system.data;
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.io;
using system.xml;
namespace xmlguest
///
/// 設計器支援所需的方法 - 不要使用**編輯器修改
/// 此方法的內容。
///
private void initialize***ponent()
#endregion}}
//---------------------end----------------------//
用PHP MySQL寫了乙個簡單的留言板
昨天忘記把資料庫的建立發上來了 現在補上 create database gbook create table gbook id int 255 unsigned not null auto increment primary key name varchar 10 not null tinyint...
C 介面的定義用乙個例項說明
介面是乙個沒有被實現的特殊的類,它是一系列操作的集合,我們可以把它看作是與其他物件通訊的協議。c 中沒有提供類似inte ce這樣的關鍵 字來定義介面,但是mircrosoft c 中提供了 declspec novtable 來修飾乙個類,來表示該類沒有虛函式表,也就是虛函式都是純虛的。所以利用它...
用XML操作Excel檔案的一些屬性說明
在利用velocity匯出excel中遇到了乙個坑,理論上講是沒有問題的,看了vm檔案也沒有問題,但是開啟生成的vm檔案時會提示檔案已損壞。經研究,excel在生成xml的時候為了不浪費資源,在生成時候,會指定excel有多少行,如果超出了這個長度的話,它就會編譯不通過並報錯,也就是遇到的這個問題。...