日期:2014-05-17 浏览次数:20470 次
分类:<asp:DropDownList ID="categoryList" runat="server"
DataSourceID="CategoryDB" DataTextField="CategoriesName"
DataValueField="CategoriesID">
</asp:DropDownList>
<asp:SqlDataSource ID="ArticleDB_FormView" runat="server"
ConnectionString="Data Source=.;Initial Catalog=BlogDB;
Persist Security Info=True;User ID=sa;Password=sa"
UpdateCommand="UPDATE [Article] SET [ArticleTitle] = @ArticleTitle,
[ArticleContent] = @ArticleContent, [LastModifie] = @LastModifie, [Tags] = @Tags,
[CategoriesID] = @CategoriesID WHERE [ArticleID] = @ArticleID">
<UpdateParameters>
<asp:Parameter Name="ArticleTitle" Type="String" />
<asp:Parameter Name="ArticleContent" Type="String" />
<asp:Parameter Name="PubDate" Type="DateTime" />
<asp:Parameter Name="LastModifie" Type="DateTime" />
<asp:Parameter Name="RecommendRanks" Type="Int32" />
<asp:Parameter Name="Tags" Type="String" />
<asp:Parameter Name="CategoriesID" Type="Int32" />
<asp:Parameter Name="ArticleID" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>