ModifyBook.aspx
资源名称:SunShine.rar [点击查看]
上传用户:tjxpgg
上传日期:2017-05-14
资源大小:2244k
文件大小:11k
源码类别:
SilverLight
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="ModifyBook.aspx.cs" Inherits="Admin_ModifyBook" %>
- <%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
- <!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>无标题页</title>
- <script type="text/javascript" src="../My97DatePicker/WdatePicker.js">
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:DetailsView ID="DetailsBook" runat="server" AutoGenerateRows="False"
- DataSourceID="ObjectDataSourceBook" Height="83px" Width="684px" DataKeyNames="Id" OnItemUpdating="DetailsBook_ItemUpdating">
- <Fields>
- <asp:TemplateField HeaderText="EditorComment" SortExpression="EditorComment">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox1" runat="server" Height="106px" Text='<%# Bind("EditorComment") %>'
- TextMode="MultiLine" Width="314px"></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EditorComment") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label1" runat="server" Text='<%# Bind("EditorComment") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="Image">
- <EditItemTemplate>
- <img src='<%# "CoverHandler.ashx?isbn="+Eval("ISBN") %>' alt=''/>
- <asp:FileUpload ID="FileUploadCover" runat="server" />
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
- </EditItemTemplate>
- <ItemTemplate>
- <img src='<%# "CoverHandler.ashx?isbn="+Eval("ISBN") %>' alt=''/>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="UnitPrice" SortExpression="UnitPrice">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("UnitPrice") %>'></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("UnitPrice") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label12" runat="server" Text='<%# Bind("UnitPrice") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="Author" SortExpression="Author">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Author") %>'></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Author") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label11" runat="server" Text='<%# Bind("Author") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="ISBN" SortExpression="ISBN">
- <EditItemTemplate>
- <asp:Label ID="LblISBN" runat="server" Text='<%# Bind("ISBN") %>'></asp:Label>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("ISBN") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label10" runat="server" Text='<%# Bind("ISBN") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="TOC" SortExpression="TOC">
- <EditItemTemplate>
- <FTB:FreeTextBox ID="FreeTextBoxToc" runat="server" Text='<%# Eval("TOC") %>' >
- </FTB:FreeTextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("TOC") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label9" runat="server" Text='<%# Bind("TOC") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="WordsCount" SortExpression="WordsCount">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("WordsCount") %>'></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("WordsCount") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label8" runat="server" Text='<%# Bind("WordsCount") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="Title" SortExpression="Title">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label7" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="PublishDate" SortExpression="PublishDate">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("PublishDate") %>' onfocus="new WdatePicker(this)"></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("PublishDate") %>' ></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label6" runat="server" Text='<%# Bind("PublishDate") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="ContentDescription" SortExpression="ContentDescription">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox5" runat="server" Height="155px" Text='<%# Bind("ContentDescription") %>'
- TextMode="MultiLine" Width="324px"></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("ContentDescription") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label5" runat="server" Text='<%# Bind("ContentDescription") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="AurhorDescription" SortExpression="AurhorDescription">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox4" runat="server" Height="140px" Text='<%# Bind("AurhorDescription") %>'
- TextMode="MultiLine" Width="296px"></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("AurhorDescription") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label4" runat="server" Text='<%# Bind("AurhorDescription") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="CategoryId" SortExpression="CategoryId">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CategoryId") %>'></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CategoryId") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label3" runat="server" Text='<%# Bind("CategoryId") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="PublisherId" SortExpression="PublisherId">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("PublisherId") %>'></asp:TextBox>
- </EditItemTemplate>
- <InsertItemTemplate>
- <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("PublisherId") %>'></asp:TextBox>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label2" runat="server" Text='<%# Bind("PublisherId") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:CommandField ShowEditButton="True" />
- </Fields>
- </asp:DetailsView>
- </div>
- <asp:ObjectDataSource ID="ObjectDataSourceBook" runat="server" DataObjectTypeName="MyBookShopModels.Books"
- SelectMethod="GetModel" TypeName="MyBookShopDAL.Books" UpdateMethod="Update">
- <SelectParameters>
- <asp:QueryStringParameter Name="Id" QueryStringField="bookid" Type="Int32" DefaultValue="4939" />
- </SelectParameters>
- </asp:ObjectDataSource>
-
- </form>
- </body>
- </html>