paymentmethodcontrol.ascx

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

ASCX
60
字号
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="PaymentMethodControl.ascx.vb"
    Inherits="Shop_Checkout_PayMethodControl" %>
<%@ Register Assembly="NetShopForge.GroupRadioButton" Namespace="NetShopForge.Web.UI.WebControls"
    TagPrefix="cc1" %>

<script type="text/javascript" language="JavaScript">
    function CheckGroupRadioButton(){ 		   var   checkit=false;    var groupRadioButton=document.getElementsByName(name);   for (var i=0;i < groupRadioButton.length;i++ ){   if (groupRadioButton[i].checked)	  checkit= true;      }	  if   (checkit==false)          alert(message) ;	  return checkit;	       }					</script>
<div>
            <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/Shop/checkout_Head_Payment.gif" />
</div>
<div class ="blankbox"></div>

<div class ="title">填写你的支付方式?</div>
     <asp:Repeater ID="rpPayment" runat="server">
                <ItemTemplate>
                    <asp:HiddenField ID="hfPamentID" runat="server" Value='<%#Eval("PaymentMethodID")%>' />
                    <table border="0" style="width: 98%">
                        <tr>
                            <td class="FormHead" colspan="2" validationgroup="PaymentMethod">
                                <cc1:GroupRadioButton ID="rbPayment" runat="server" GroupName="PaymentMethod" ValidationGroup="PaymentMethod" />
                                <asp:Label ID="lbShippingMethodDescription" runat="server" AssociatedControlID="rbPayment"
                                    Text='<%# Eval("paymentmethodname")%>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:Repeater>


<br />
<table id="tFooter" border="0" cellpadding="0" cellspacing="0" style="width: 100%;
    text-align: center">
    <tr>
        <td>
            <asp:Button ID="btnGoShippingMethod" runat="server" Text="上一步(配送方式)" />&nbsp;
            <asp:Button ID="btnGoOrderReview" OnClientClick="javascript:return CheckGroupRadioButton('PaymentMethod','- 请选择一种支付方式')"
                runat="server" Text="下一步(预览订单)"  /></td>
    </tr>
</table>

⌨️ 快捷键说明

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