or
<!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> <title>HI MIKE</title> </head> <style type="text/css"> HTML BODY .RadInput .riTextBox { border-bottom: 1px solid; border-left: 1px solid; padding-bottom: 3px; padding-left: 1px; padding-right: 1px; border-top: 1px solid; border-right: 1px solid; padding-top: 2px; } .RadInput_Office2007 { font: 12px "segoe ui", arial, sans-serif; } HTML BODY .RadInput_Office2007 .riTextBox { border-bottom-color: #abc1de; border-top-color: #abc1de; font: 12px "segoe ui", arial, sans-serif; background: #fff; color: #000; border-right-color: #abc1de; border-left-color: #abc1de; } HTML BODY .RadInput_Office2007 .riDisabled { border-bottom-color: #ccdbed; border-top-color: #ccdbed; color: #8d8d8d; border-right-color: #ccdbed; border-left-color: #ccdbed; cursor: default; } </style> <body> <input id="Text1" type="text" value ="Disabled" disabled="disabled" /> <br /> <input id="Text2" type="text" value ="Read Only" readonly="readonly" /> <br /> <span id="ctl02_ctl01_OBJ_FIRSTNAME_wrapper" class="RadInput RadInput_Office2007" style="white-space:nowrap;"> <input value="rtyrty" type="text" maxlength="25" size="20" id="ctl02_ctl01_OBJ_FIRSTNAME_text" name="ctl02_ctl01_OBJ_FIRSTNAME_text" class="riTextBox riDisabled" disabled="disabled" style="width:25ex;" /> </span> </body> </html> <asp:SqlDataSource ID="sqlMain" runat="server"></asp:SqlDataSource><asp:SqlDataSource ID="sqlUsers" runat="server"></asp:SqlDataSource><telerik:RadScheduler ID="radSchedule1" runat="server" Height="100%"MinutesPerRow="15" Skin="Web20" StartInsertingInAdvancedForm="True"AdvancedForm-Modal="True" AdvancedForm-Width="400px" TimelineView-GroupBy="Users" TimelineView-GroupingDirection="Vertical" FirstDayOfWeek="Monday" SelectedView="WeekView" Localization-HeaderWeek="Work Week"><ResourceTypes> <telerik:ResourceType KeyField="UserId" Name="Users" TextField="Name" ForeignKeyField="UserId" DataSourceID="sqlUsers" /></ResourceTypes><AdvancedInsertTemplate> ......</AdvancedInsertTemplate><AdvancedEditTemplate> ......</AdvancedEditTemplate></telerik:RadScheduler>
<%@ Page Title="" Language="C#" MasterPageFile="~/RL/MasterPages/DefaultMasterPage.master" AutoEventWireup="true" CodeFile="ForgottenPassword.aspx.cs" Inherits="GuidesNS.RL_Pages_ForgottenPassword" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <script type="text/javascript"> function FocusOnRadWindow() { window.setTimeout(function () { GetRadWindow().GetContentFrame().contentWindow.focus(); }, 100); } </script> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <!-- Page Controls --></asp:Content> <body onload="FocusOnRadWindow()"> <form id="form1" runat="server"> <div> </div> </form> </body><telerik:RadGrid ID="rgEmployees" OnSortCommand="rgEmployees_SortCommand" OnPageIndexChanged="rgEmployees_PageIndexChanged" OnPageSizeChanged="rgEmployees_PageSizeChanged" AllowSorting="True" PageSize="15" OnItemCommand="rgEmployees_ItemCommand" AllowPaging="True" AllowMultiRowSelection="True" AllowFilteringByColumn="True" OnNeedDataSource="rgEmployees_OnNeddDataSource" OnUpdateCommand="rgEmployees_UpdateCommand" OnDeleteCommand="rgEmployees_DeleteCommand" ShowStatusBar="true" runat="server" GridLines="None"> <GroupingSettings CaseSensitive="false" /> <ClientSettings EnablePostBackOnRowClick="true"> </ClientSettings> <MasterTableView DataKeyNames="E_Id" AutoGenerateColumns="false"> <Columns> <%-- <telerik:GridBoundColumn DataField="E_Id" HeaderText="Identyfikator" UniqueName="E_Id" FilterControlWidth="50px"> </telerik:GridBoundColumn>--%> <telerik:GridBoundColumn DataField="E_Name" HeaderText="Imię" UniqueName="E_Name" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="E_Surname" HeaderText="Nazwisko" UniqueName="E_Surname" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="E_Address" HeaderText="Adres" UniqueName="E_Address" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="E_City" HeaderText="Miasto" UniqueName="E_City" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="E_Function" HeaderText="Funkcja" UniqueName="E_Function" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="E_LandlinePhone" HeaderText="Tel. stacjonarny" UniqueName="E_LandlinePhone" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="E_MobilePhone" HeaderText="Tel. komórkowy" UniqueName="E_MobilePhone" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="E_Email" HeaderText="E-mail" UniqueName="E_Email" FilterControlWidth="100px"> </telerik:GridBoundColumn> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" ItemStyle-Width="15" /> <telerik:GridButtonColumn ConfirmText="Usunąć pracownika?" ConfirmDialogType="RadWindow" ConfirmTitle="Usuwanie" Text="Usuń" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="150px" ConfirmDialogWidth="260px" ItemStyle-Width="15" /> </Columns> <EditItemStyle ForeColor="Gray" /> <EditFormSettings> <FormTableItemStyle Wrap="False" Width="100%"></FormTableItemStyle> <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle> <FormMainTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" /> <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2" CssClass="module" Height="30" BackColor="White" Width="60" /> <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> <FormStyle Width="100%"></FormStyle> <EditColumn ButtonType="ImageButton" UpdateText="Uaktualnij wiersz" UniqueName="EditCommandColumn1" CancelText="Anuluj edycję"> </EditColumn> <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle> </EditFormSettings> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> </telerik:RadGrid>protected void rgEmployees_DeleteCommand(object sender, GridCommandEventArgs e) { LogManager.GetCurrentClassLogger().Info("Usuwam pracownika"); var gridDataItem = e.Item as GridDataItem; if (gridDataItem == null) { LogManager.GetCurrentClassLogger().Info("gridDataItem jest null"); return; } var id = Convert.ToInt32(gridDataItem.GetDataKeyValue("E_Id").ToString()); _db.DeleteEmployee(id); LogManager.GetCurrentClassLogger().Info("Usunąłem pracownika o id = " + id.ToString()); }