這是我的代碼部分如何在文本框中插入時間列
//實例我們必須處理 字符串名稱= txtName.Text的對象; string描述= txtDecription.Text; string Topic = txtTopic.Text; string贊助商= txtSponsor.Text; string Location = txtLocation.Text; System.DateTime StartDate; StartDate = DateTime.Parse(txtStartDate.Text); System.DateTime EndDate = DateTime.Parse(txtEndDate.Text); string URL = txtURL.Text;
try
{
intResult = pBAL.Insert(Name,Description, Topic,Sponsor, Location,StartDate,EndDate,URL);
}
錯誤:Argumnet 6和7 .cannot從系統.DateTime轉換爲「字符串 需要一些幫助
THANKS RAMAKRISHNAN,問題解決 – prince 2010-09-15 12:11:26