You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
5.7 KiB

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Help_Mapper.aspx.vb" Inherits="LPWeb.Help_Mapper" %>
<%@ Register Src="~/Defaults/Header.ascx" TagPrefix="shu" TagName="Header" %>
<%@ Register Src="~/UserControls/Menu1.ascx" TagPrefix="shu" TagName="Menu" %>
<%@ Register Src="~/Defaults/Footer.ascx" TagPrefix="shu" TagName="Footer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="ScriptManager1" runat="server"
EnableTheming="True">
<scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.Core.js">
</asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.jQuery.js">
</asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI"
Name="Telerik.Web.UI.Common.jQueryInclude.js">
</asp:ScriptReference>
</scripts>
</telerik:RadScriptManager>
<div class="page">
<shu:Header runat="Server" ID="Header1"></shu:Header>
<shu:Menu runat="server" ID="Menu1" NavigationLanguage="VB"></shu:Menu>
<div class="main">
<h2>Help-Mapper</h2>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
AllowPaging="True" AllowSorting="True" CellSpacing="0" Culture="de-DE"
DataSourceID="SqlDataSource1" GridLines="None" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True"
AllowAutomaticInserts="True">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="Nreintrag" CommandItemDisplay="Top"
DataSourceID="SqlDataSource1">
<CommandItemSettings ExportToPdfText="PDF-Export"
AddNewRecordText="Neuer Datensatz" ExportToExcelText="Excel-Export"
RefreshText="Aktualisieren"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="Nreintrag" DataType="System.Int32"
FilterControlAltText="Filter Nreintrag column" HeaderText="Nr"
ReadOnly="True" SortExpression="Nreintrag" UniqueName="Nreintrag">
<HeaderStyle Width="50px" />
<ItemStyle Width="50px" Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Sourceurl"
FilterControlAltText="Filter Sourceurl column" HeaderText="Sourceurl"
SortExpression="Sourceurl" UniqueName="Sourceurl">
<ItemStyle Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Desturl"
FilterControlAltText="Filter Desturl column" HeaderText="Desturl"
SortExpression="Desturl" UniqueName="Desturl">
<ItemStyle Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column"
HeaderText="" ButtonType="ImageButton" ItemStyle-HorizontalAlign="Center">
<HeaderStyle Width="40px" />
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</telerik:GridEditCommandColumn>
<telerik:GridButtonColumn ConfirmText="Beruf wirklich löschen?" ConfirmDialogType="RadWindow"
ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" HeaderText=""
UniqueName="DeleteColumn" ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
<HeaderStyle Width="40px" />
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="ImageButton"
InsertText="Einfügen" UpdateText="Speichern" CancelText="Abbruch"> </EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
</div>
</div>
<shu:Footer runat="Server" ID="Footer1"></SHU:Footer>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:LPConnectionString %>"
DeleteCommand="DELETE FROM [WebHelp_Mapper] WHERE [Nreintrag] = @Nreintrag"
InsertCommand="INSERT INTO [WebHelp_Mapper] ([Sourceurl], [Desturl]) VALUES (@Sourceurl, @Desturl)"
SelectCommand="SELECT [Nreintrag], [Sourceurl], [Desturl] FROM [WebHelp_Mapper]"
UpdateCommand="UPDATE [WebHelp_Mapper] SET [Sourceurl] = @Sourceurl, [Desturl] = @Desturl WHERE [Nreintrag] = @Nreintrag">
<DeleteParameters>
<asp:Parameter Name="Nreintrag" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Sourceurl" Type="String" />
<asp:Parameter Name="Desturl" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Sourceurl" Type="String" />
<asp:Parameter Name="Desturl" Type="String" />
<asp:Parameter Name="Nreintrag" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
</form>
</body>
</html>