editfeaturecontrol.ascx

来自「C#语言制作asp.net网上商店的」· ASCX 代码 · 共 296 行 · 第 1/2 页

ASCX
296
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="EditFeatureControl.ascx.vb" Inherits="Admin_Management_Controls_EditFeatureControl" %>

            <table cellpadding="0" cellspacing="0" width="100%">
                <tbody>
                    <tr>
                        <td class="NavDialogBorder" height="15" valign="bottom">
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td class="NavDialogTitle" style="height: 19px" width="50%">
                                        In this section:</td>
                                    <td class="NavDialogTitle" style="height: 19px">
                                        See also:</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="NavDialogBorder">
                            <table cellpadding="10" cellspacing="1" width="100%">
                                <tbody>
                                    <tr>
                                        <td class="NavDialogBox" valign="top">
                                            <table cellpadding="0" cellspacing="1" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td align="left" valign="top" width="50%">
                                                            <asp:BulletedList ID="BulletedList1" runat="server" BulletStyle="Square" DisplayMode="HyperLink">
                                                                <asp:ListItem Value="~/Admin/Management/Feature.aspx?mode=editfeature&amp;featureGroupID=-1">Add product class</asp:ListItem>
                                                                <asp:ListItem Value="~/Admin/Management/Feature.aspx">Feature List</asp:ListItem>
                                                            </asp:BulletedList>
                                                        </td>
                                                        <td align="left" valign="top">
                                                            <asp:BulletedList ID="BulletedList2" runat="server" BorderStyle="None" BulletStyle="Square"
                                                                DisplayMode="HyperLink">
                                                                <asp:ListItem>Orders</asp:ListItem>
                                                            </asp:BulletedList>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
            <table border="0" cellpadding="2" cellspacing="0" width="80%">
                <tbody>
                    <tr>
                        <td class="DialogTitle" >
                            <asp:Label ID="lblDialogTitle" runat="server" Text="Edit Feature"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="DialogBorder">
                            <table border="0" cellpadding="10" cellspacing="0" width="100%">
                                <tbody>
                                    <tr>
                                        <td class="DialogBox">
                                            &nbsp;<table id="Table7" border="0" cellpadding="0" cellspacing="0" width="402">
                <tr>
                    <td >
                        <!-- group title -->                    </td>
                </tr>
                <tr>
                    <td height="1" >                    </td>
                </tr>
                <tr>
                    <td >
                        <!-- group info -->
                        <table id="Table4" border="0" cellpadding="0" cellspacing="0" width="402">
                            <tr>
                                <td class="FormButton" nowrap="nowrap" width="150">
                                    <asp:Label ID="lblName" runat="server">属性组名称:</asp:Label></td>
                                <td nowrap="nowrap">
                                    <asp:TextBox ID="txtName" runat="server" Width="232px" ></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td class="FormButton" nowrap="nowrap" style="height: 23px" width="150">
                                    <asp:Label ID="lblDescription" runat="server">属性组说明:</asp:Label></td>
                                <td style="height: 23px">
                                    <asp:TextBox ID="txtDescription" runat="server" Width="232px" ></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td class="FormButton" nowrap="nowrap" style="height: 18px" width="150">
                                    <asp:Label ID="lblVisible" runat="server">是否发布:</asp:Label></td>
                                <td style="height: 18px">
                                    <asp:DropDownList ID="ddlIsVaild" runat="server">
                                        <asp:ListItem Value="-1">是</asp:ListItem>
                                        <asp:ListItem Value="0">否</asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td class="FormButton" nowrap="nowrap" width="150">
                                    <asp:Label ID="lblItemOrder" runat="server">显示顺序:</asp:Label></td>
                                <td>
                                    <asp:TextBox ID="txtItemOrder" runat="server"></asp:TextBox></td>
                            </tr>
                        </table>
                       </td>
                </tr>
                <tr>
                  <td ><asp:Button ID="btnSaveFeatureGroup" runat="server" Text="Save" /></td>
                </tr>
            </table>
            <br />
                                            <asp:Panel ID="pFeatureOption" runat="server">
            <table width="100%" cellspacing="0" >
              <tbody>
                <tr>
                  <td class="SubHeaderBlack">
                      <asp:Label ID="Label1" runat="server" Text="Product Feature options"></asp:Label>   <hr noshade="noshade" size="1" /></td>
                </tr>
 <tr>
                  <td  >
                      <asp:GridView ID="gvFeatureItem" runat="server" AutoGenerateColumns="False" EmptyDataText="Options are not defined" SkinID="Default">
                          <Columns>
                              <asp:TemplateField>
                                  <ItemTemplate>
                                      <asp:CheckBox ID="cbSelect" runat="server" />                                  </ItemTemplate>
                              </asp:TemplateField>
                              <asp:ButtonField Text="Name" HeaderText="Name" DataTextField="FeatureName"  />
                                <asp:TemplateField HeaderText="IsValid">
                                    <ItemTemplate>
                                     
                                        	<asp:DropDownList id=ddlGridIsVaild runat="server" SelectedValue='<%# Cint(DataBinder.Eval(Container.DataItem,"IsValid")) %>'>
									<asp:ListItem Value="-1" Selected="True">是</asp:ListItem>
									<asp:ListItem Value="0">否</asp:ListItem>
								</asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="POS.">
                                      <ItemTemplate>
                                        	<asp:TextBox id=txtItemOrder runat="server" Width="33px" Text='<%# DataBinder.Eval(Container.DataItem,"ItemOrder") %>' MaxLength="4">								</asp:TextBox>
                                      </ItemTemplate>
                                  </asp:TemplateField>
                              <asp:BoundField DataField="FeatureID" HeaderText="FeatureID" Visible="False" />
                          </Columns>
                      </asp:GridView>                  </td>
                </tr>
 <tr>
   <td  ><asp:Button ID="btnUpdateOption" runat="server" Text="Update" />
       <asp:Button ID="btnDeleteOption" runat="server" Text="Delete select option" /></td>
 </tr>
 <tr>
   <td height="10"  ></td>

⌨️ 快捷键说明

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