featurecontrol.ascx

来自「C#语言制作asp.net网上商店的」· ASCX 代码 · 共 108 行

ASCX
108
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="FeatureControl.ascx.vb" Inherits="Admin_Management_Controls_FeatureControl" %>

        <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:BulletedList>
                                                    </td>
                                                    <td align="left" valign="top">&nbsp;
                                                        </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="Feature"></asp:Label></td>
                </tr>
                <tr>
                  <td class="DialogBorder">
                        <table border="0" cellpadding="10" cellspacing="0" width="100%">
                            <tbody>
                                <tr>
                                    <td class="DialogBox">
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="height: 20px">
                                                    <asp:Literal ID="Literal1" runat="server" Text="XXX"></asp:Literal></td>
                                            </tr>
                                            <tr>
                                                <td>

                                                    
                                                     <script language="javascript" src="../../js/change_all_checkboxes.js"></script>
                                                    <div style="line-height: 170%">
                                                        <a href="javascript:checkAll(true,'gvFeature');">Check all</a>
                                                        / <a href="javascript:checkAll(false,'gvFeature');">Uncheck all</a></div>
                                                    <asp:GridView ID="gvFeature" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                                        BorderColor="White" SkinID="Default">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                                                     <asp:CheckBox ID="cbSelect" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:HyperLinkField DataNavigateUrlFields="FeatureGroupID" DataNavigateUrlFormatString="~/Admin/Management/Feature.aspx?mode=editfeature&amp;featureGroupID={0}"
                                                                DataTextField="FeatureGroupName" HeaderText="FeatureGroupName" />
                                                            <asp:TemplateField HeaderText="IsValid">
                                                                <ItemTemplate>
                                                                  		<asp:DropDownList id=ddlIsVaild runat="server" SelectedValue='<%# Cint(DataBinder.Eval(Container.DataItem,"IsValid")) %>'>
												<asp:ListItem Value="-1" Selected="True">YES</asp:ListItem>
												<asp:ListItem Value="0">NO</asp:ListItem>
											</asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="POS.">
                                                                <ItemTemplate>
                                                                  	<asp:TextBox id=txtItemOrder runat="server" Width="46px" Text='<%# DataBinder.Eval(Container.DataItem,"ItemOrder") %>' MaxLength="4"></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                  
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
&nbsp;

⌨️ 快捷键说明

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