1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<asp:SqlDataSource id="sqldsNews" runat="server"
UpdateCommand="UPDATE Speed_News SET Titre_News = @Titre_News, Texte_News = @Texte_News WHERE Id_News = @Id_News"
ConnectionString="<%$ ConnectionStrings:datacon %>"
SelectCommand="SELECT Id_News, Date_News, Titre_News, Texte_News FROM Speed_News ORDER BY Date_News Desc"
InsertCommand="INSERT INTO dbo.Speed_News(Titre_News, Texte_News) VALUES (@Titre_News,@Texte_News)">
</asp:SqlDataSource>
<asp:GridView ID="gvNews" runat="server"
DataSourceID="sqldsNews"
AllowPaging="true"
AllowSorting="true"
AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True">
</asp:GridView> |