
Untitled
By: a guest on
Apr 30th, 2010 | syntax:
HTML | size: 1.62 KB | hits: 122 | expires: Never
<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Welcome to ASP.NET!
</h2>
<p>
To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">
www.asp.net</a>.
</p>
<p>
You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&clcid=0x409"
title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.<br />
</p>
<br />
<asp:GridView ID="GridView1" AllowSorting="true" AllowPaging="true" runat="server"
DataSourceID="SqlDataSource1" AutoGenerateEditButton="true" DataKeyNames="RSSID"
AutoGenerateColumns="False">
<Columns>
<asp:BoundField ReadOnly="true" HeaderText="ID" DataField="RSSID" SortExpression="RSSID" />
<asp:BoundField HeaderText="URL" DataField="URL" SortExpression="URL" />
<asp:BoundField HeaderText="Name" DataField="Name" SortExpression="Name" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" SelectCommand="SELECT [RSSID], [URL], [Name] FROM [RSSFEEDS]"
UpdateCommand="UPDATE [RSSFEEDS] SET [Name] = @Name, [URL] = @URL WHERE [RSSID] = @RSSID"
ConnectionString="Data Source=MATHEW-PC\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True" />
</asp:Content>