日期:2014-05-16 浏览次数:20712 次
public class DateGet
{
public string date_f = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
InsertCommand="INSERT INTO [Article] ([ArticleTitle], [ArticleContent],
[PubDate], [Tags], [BlogerID])VALUES (@ArticleTitle, @ArticleContent,
@PubDate, @Tags, @BlogerID)"
<InsertParameters>
<asp:Parameter Name="ArticleTitle" Type="String" />
<asp:Parameter Name="ArticleContent" Type="String" />
<asp:Parameter Name="Tags" Type="Int32"/>
<asp:SessionParameter Name="BlogerID" SessionField="ID" Type="Int32" />
</InsertParameters>
ArticleDB.InsertParameters.Add("PubDate",Date.date_f);