📄 userstatus.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userstatus.aspx.cs" Inherits="ljian_admin_group_userstatus" %>
<%@ 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 id="Head1" 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="id"
DataSourceID="SqlDataSource1" Width="767px" OnRowCommand="GridView1_RowCommand">
<HeaderStyle CssClass="headstyle" />
<RowStyle CssClass ="itemstyle" />
<Columns>
<asp:BoundField DataField="id" HeaderText="id" InsertVisible="False"
ReadOnly="True" SortExpression="id" Visible="False" />
<asp:BoundField DataField="userstatus" HeaderText="会员状态名" SortExpression="userstatus" />
<asp:BoundField DataField="description" HeaderText="描述" SortExpression="description" />
<asp:CommandField CausesValidation="False" HeaderText="操作" ShowEditButton="True" />
<asp:TemplateField HeaderText="删除">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandArgument='<%#Eval("id") %>' 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 :27%"><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: 27%; padding-top: 2px; height: 19px"
valign="bottom">
<strong>会员状态描述:</strong></td>
<td bgcolor="#e7f5fd" align="left" style="width: 80%; height: 19px; text-align: left">
</td>
</tr>
<tr>
<td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; width: 27%; padding-top: 2px; height: 19px"
valign="bottom">
</td>
<td bgcolor="#e7f5fd" align="left" style="width: 80%; height: 19px; text-align: left">
<asp:TextBox ID="description" TextMode="MultiLine" runat="server" Width="256px" Height ="100px"></asp:TextBox>
</td>
</tr>
<tr><td bgcolor="#e7f5fd" colspan =2 align="left" height=31>
<asp:Button id="fabiao" onclick="fabiao_click" runat="server" Text="添加" Width="71px"></asp:Button>
<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 userstatus where id=@id" SelectCommand="SELECT * FROM userstatus "
UpdateCommand="UPDATE userstatus SET userstatus = @userstatus,description=@description WHERE (id = @id)" InsertCommand="INSERT INTO userstatus(userstatus, description) VALUES (@userstatus, @description)">
<DeleteParameters>
<asp:Parameter Name="id" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="userstatus" />
<asp:Parameter Name="description" />
<asp:Parameter Name="id" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="userstatus" />
<asp:Parameter Name="description" />
</InsertParameters>
</asp:SqlDataSource>
</ContentTemplate></asp:UpdatePanel>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -