Credit Card Payment - Button (Error)
Posted: Fri Apr 29, 2011 11:58 am
I'm trying to change the "Pay with Card" button (when the customer submits the order and credit card information) to a custom image.
I changed the button code (in CreditCardPaymentForm.ascx) to: <asp:ImageButton ID="CreditCardButton" runat="server" SkinID="SubmitOrderButton" ValidationGroup="CreditCard" Visible="true" OnClick="CreditCardButton_Click"></asp:ImageButton>
and added a line in style.skin: <asp:ImageButton runat="server" SkinId="SubmitOrderButton" ImageUrl="images/submitorder_button.gif" />
The result is this error:
[[ConLib:PaymentPage]] c:\inetpub\wwwroot\websitedirectory\Checkout\PaymentForms\CreditCardPaymentForm.ascx(292): error CS0122: 'System.Web.UI.WebControls.ImageButton.Text' is inaccessible due to its protection level.
The desired end result is to make the button an image. I've done this with other buttons. What do I need to do to make this happen?
Thanks
I changed the button code (in CreditCardPaymentForm.ascx) to: <asp:ImageButton ID="CreditCardButton" runat="server" SkinID="SubmitOrderButton" ValidationGroup="CreditCard" Visible="true" OnClick="CreditCardButton_Click"></asp:ImageButton>
and added a line in style.skin: <asp:ImageButton runat="server" SkinId="SubmitOrderButton" ImageUrl="images/submitorder_button.gif" />
The result is this error:
[[ConLib:PaymentPage]] c:\inetpub\wwwroot\websitedirectory\Checkout\PaymentForms\CreditCardPaymentForm.ascx(292): error CS0122: 'System.Web.UI.WebControls.ImageButton.Text' is inaccessible due to its protection level.
The desired end result is to make the button an image. I've done this with other buttons. What do I need to do to make this happen?
Thanks