<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="SaveToDB._Default" %>

<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
<%@ Register Assembly="RadEditor.Net2" Namespace="Telerik.WebControls" TagPrefix="radE" %>
<!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 runat="server">
  <title>Untitled Page</title>
  <link href="C:\Clients\Falafel\Training\Telerik\RadControls\rad editor\projects\SaveToDB\SaveToDB\RadControls\Editor\Skins\Default\Editor.css"
    rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
    <radA:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="100%">
<radE:RadEditor ID="RadEditor1" runat="server" OnSubmitClicked="RadEditor1_SubmitClicked" 
  Height="200px" ShowHtmlMode="false" ShowPreviewMode="false"         
  documentspaths="~/Documents"
  uploaddocumentspaths="~/Documents"
  deletedocumentspaths="~/Documents"
  DocumentsFilters="*.doc, *.txt"
  MaxDocumentSize ="512000"> 
</radE:RadEditor>
      &nbsp;
      <asp:CheckBox ID="HasPermission" runat="server" AutoPostBack="True" OnCheckedChanged="CheckedChanged"
        Text="HasPermission" />
      <asp:CheckBox ID="Editable" runat="server" AutoPostBack="True" OnCheckedChanged="CheckedChanged"
        Text="Editable" /><br />
      <asp:DataGrid ID="Grid1" runat="server" HeaderStyle-Font-Name="Verdana" BorderWidth="1px"
        CellPadding="3" AutoGenerateColumns="False" Width="640px" DataSourceID="SqlDataSource1"
        OnSelectedIndexChanged="Grid1_SelectedIndexChanged1">
        <HeaderStyle Font-Names="Verdana" ForeColor="Black" BackColor="#D3E5FA"></HeaderStyle>
        <Columns>
          <asp:ButtonColumn CommandName="Select" HeaderText="Select" Text="Select">
            <ItemStyle Width="50px" />
          </asp:ButtonColumn>
          <asp:BoundColumn DataField="EmployeeID" Visible="False" />
          <asp:BoundColumn DataField="FirstName" HeaderText="First Name" />
          <asp:BoundColumn DataField="LastName" HeaderText="Last Name" />
          <asp:BoundColumn DataField="Notes" HeaderText="Notes" />
        </Columns>
      </asp:DataGrid>&nbsp;&nbsp;
      <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString2 %>"
        SelectCommand="SELECT EmployeeID, LastName, FirstName, Notes FROM Employees order by LastName">
      </asp:SqlDataSource>
    </radA:RadAjaxPanel>
  </form>
</body>
</html>
