<%
@ Page Language="VB" MasterPageFile="~/Masters/PU89AdminMasterPage.master" AutoEventWireup="false" CodeFile="EditNews.aspx.vb" Inherits="Admin_EditNews" title="PU89 - Admin Area" %>
<%
@ Register Assembly="Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<
Table id="tblAdminEditNews" runat="server" class="PageFont">
<tr>
<td style="height: 10px">           </td>
<td class="HeaderText" style="border-bottom: solid 3px #FF7700; height: 10px" colspan="2">PU89 Admin: News - Edit</td>
</tr>
<tr>
<td style="height: 10px">           </td>
<td style="width: 694px">
<telerik:RadGrid ID="rgdEditNews" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="dsEditNews"
GridLines="None" PageSize="30" Width="100%" Skin="Gray" OnDeleteCommand="rgdEditNews_DeleteCommand"
OnNeedDataSource="rgdEditNews_NeedDataSource" OnEditCommand="rgdEditNews_EditCommand">
<MasterTableView AutoGenerateColumns="False" DataSourceID="dsEditNews" Width="693px" DataKeyNames="ID">
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName="column1">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="column1">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="Title" EmptyDataText="&nbsp;" HeaderText="Title"
SortExpression="Title" UniqueName="Title">
<ItemStyle Width="425px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BDate" DataType="System.DateTime" EmptyDataText="&nbsp;"
HeaderText="Date" SortExpression="BDate" UniqueName="BDate">
<ItemStyle Width="100px" />
</telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn DataField="Display" DataType="System.Boolean" HeaderText="Display"
SortExpression="Display" UniqueName="Display">
<ItemStyle Width="100px" />
</telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="ID" Display="False" EmptyDataText="&nbsp;"
UniqueName="ID" Visible="False">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<FilterMenu EnableTheming="True" Skin="Gray">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid><asp:SqlDataSource ID="dsEditNews" runat="server" ConnectionString="<%$ ConnectionStrings:PU89 %>"
SelectCommand="SELECT [ID], [Title], [BDate], [Display] FROM [tblNews]" ConflictDetection="CompareAllValues" DeleteCommand="DELETE FROM [tblNews] WHERE [ID] = @original_ID AND [Title] = @original_Title AND [BDate] = @original_BDate AND [Display] = @original_Display" InsertCommand="INSERT INTO [tblNews] ([Title], [BDate], [Display]) VALUES (@Title, @BDate, @Display)" OldValuesParameterFormatString="original_{0}" UpdateCommand="UPDATE [tblNews] SET [Title] = @Title, [BDate] = @BDate, [Display] = @Display WHERE [ID] = @original_ID AND [Title] = @original_Title AND [BDate] = @original_BDate AND [Display] = @original_Display">
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="height:275px"> </td>
</tr>
</
Table>
</
asp:Content>
My edit module is called rgdEditNews_EditCommand but it is empty for now because i wasn't sure where to begin. Thanks!