⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chubanshe.aspx

📁 2007年华中科技大学数据库课程设计参考程序[图书销售系统]+报告
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chubanshe.aspx.cs" Inherits="ljian_admin_group_chubanshe" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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>
    <link href="../../../ljian/admin/style/style_main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel runat="server" ID="up" ><ContentTemplate>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="concernID"
            DataSourceID="SqlDataSource1" Width="767px" OnRowCommand="GridView1_RowCommand">
             <HeaderStyle CssClass="headstyle" />
             <RowStyle CssClass ="itemstyle" />
            <Columns>
                <asp:BoundField DataField="concernID" HeaderText="concernID" InsertVisible="False"
                    ReadOnly="True" SortExpression="concernID" Visible="False" />
                <asp:BoundField DataField="conName" HeaderText="出版社名" SortExpression="conName">
                    <ItemStyle HorizontalAlign="Left" />
                              </asp:BoundField>
                <asp:BoundField DataField="conAddress" HeaderText="地址" SortExpression="conAddress" />
                <asp:BoundField DataField="conTel" HeaderText="联系电话" SortExpression="conTel" />
                <asp:BoundField DataField="conWebsite" HeaderText="官方网站" SortExpression="conWebsite" />
                <asp:BoundField DataField="conEmail" HeaderText="Email" SortExpression="conEmail" />
                <asp:CommandField HeaderText="操作" ShowEditButton="True" CausesValidation="False" />
                <asp:TemplateField HeaderText="删除">
                <ItemTemplate>
                <asp:LinkButton runat="server" CausesValidation="false" CommandArgument='<%#Eval("concernid") %>' CommandName="del" Text ="删除" OnClientClick="javascript:if(confirm('确定删除该出版社吗?'))  return true;else return false;"></asp:LinkButton>
                </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        
  <div style ="float :left; width:400px; margin-top :30px; margin-left :25px">      
        <table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td width="6" style="height: 21px"><img src="../../images/left.gif" alt="" width="6" height="21"/></td>
    <td width="99%" background="../../images/center.gif" class="colorbai" style="height: 21px; font-size:14px; vertical-align:middle; color :White; ">添加新出版社</td>
    <td width="7" style="height: 21px"><img src="../../images/right.gif" alt="" width="6" height="21"/></td>
  </tr>
</table>
         <table border="0" bgcolor="#8fb9d0" width="100%" cellpadding="4" cellspacing="1" ><%--style ="border-left :1px solid #cfc7b2; border-right :1px solid #cfc7b2"--%>
       <tr><td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :23%"><strong>出版社名称:</strong></td>
       <td align=left bgcolor="#e7f5fd" style="text-align :left; width :80%; height: 23px;"><asp:TextBox id="name" runat="server" Width="156px"></asp:TextBox> <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="name"></asp:RequiredFieldValidator></td></tr>
             <tr>
                 <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; width: 23%; padding-top: 2px; height: 19px"
                     valign="bottom">
                     <strong>出版社地址:</strong></td>
                 <td bgcolor="#e7f5fd" align="left" style="width: 80%; height: 19px; text-align: left">
                     <asp:TextBox ID="address" runat="server" Width="254px"></asp:TextBox></td>
             </tr>
             <tr>
                 <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; width: 23%; padding-top: 2px; height: 19px"
                     valign="bottom">
                     <strong>联系电话:</strong></td>
                 <td bgcolor="#e7f5fd" align="left" style="width: 80%; height: 19px; text-align: left">
                     <asp:TextBox ID="tel" runat="server" Width="156px"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tel"
                         Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
             </tr>
             <tr>
                 <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; width: 23%; padding-top: 2px; height: 19px"
                     valign="bottom">
                     <strong>出版社网站:</strong></td>
                 <td bgcolor="#e7f5fd" align="left" style="width: 80%; height: 19px; text-align: left">
                     <asp:TextBox ID="website" runat="server" Width="206px"></asp:TextBox></td>
             </tr>
             <tr>
                 <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; width: 23%; padding-top: 2px; height: 19px"
                     valign="bottom">
                     <strong>Email:</strong></td>
                 <td bgcolor="#e7f5fd" align="left" style="width: 80%; height: 19px; text-align: left">
                     <asp:TextBox ID="email" runat="server" Width="204px"></asp:TextBox></td>
             </tr>

       <tr><td bgcolor="#e7f5fd" colspan =2 align="left" height=31>
           &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
           <asp:Button id="fabiao" onclick="fabiao_click" runat="server" Text="添加" Width="71px"></asp:Button>&nbsp;
            <asp:Label ID="error" runat="server" ForeColor="#C00000" Visible="False"></asp:Label>  
            <!--------------------------->
             <asp:UpdateProgress runat="server" id="up1" AssociatedUpdatePanelID="up">
         <ProgressTemplate> <span id="duquzhong" style=" font-size:12px; color :Green;"><img src="../../images/loading.gif" alt="读取中..."  />正在提交,请稍后...</span>  </ProgressTemplate>
        </asp:UpdateProgress>
             <!---------------------------></td></tr></table>
            <%-- <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>
<td><img height=4 alt="" src="../../images/06default_0726_03_1.gif" width=4></td>
<td width="99%" background=../../images/06default_0726_03_3.gif></td>
<td><img height=4 alt="" src="../../images/06default_0726_03_2.gif" width=4></td></tr></table>--%>

</div>
             
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineBookSellConnectionString %>"
            DeleteCommand="delete from bookconcern where  concernid=@concernid" SelectCommand="SELECT * FROM [BookConcern]"
            UpdateCommand="UPDATE BookConcern SET conName = @conname, conAddress = @conaddress, conTel = @contel, conWebsite = @conwebsite, conEmail = @conemail where concernid=@concernid" InsertCommand="INSERT INTO BookConcern(conName, conAddress, conTel, conWebsite, conEmail) VALUES (@conname, @conaddress,@contel, @conwebsite, @conemail)">
            <DeleteParameters>
                <asp:Parameter Name="concernid" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="conname" />
                <asp:Parameter Name="conaddress" />
                <asp:Parameter Name="contel" />
                <asp:Parameter Name="conwebsite" />
                <asp:Parameter Name="conemail" />
                <asp:Parameter Name="concernid" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="conname" />
                <asp:Parameter Name="contel" />
                <asp:Parameter Name="conaddress" />
                <asp:Parameter Name="conwebsite" />
                <asp:Parameter Name="conemail" />
            </InsertParameters>
        </asp:SqlDataSource>
    </ContentTemplate></asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -