submitButton_Click()事件處理程序目前從會議特性中組合了一個字符串
注意
下面的許多代碼都是很熟悉的
protected void submitButton_Click(object sender
{
if (this
{
String attendees =
foreach (ListItem attendee in attendeeList
{
if (attendee
{
attendees += attendee
}
}
attendees +=
String dateString =
calendar
String oleDbCommand =
eventBox
roomList
attendees +
創建了SQL查詢字符串後
System
new System
oleDbConnection
接著重新打開在Page_Load()中斷開的連接(這可能不是最高效的方式
oleDbConnection
int queryResult = insertCommand
ExecuteNonQuery()返回一個整數
if (queryResult ==
{
resultLabel
daEvents = new System
ds
[
From:http://tw.wingwit.com/Article/program/net/201311/14532.html