Hi, geomar,
I had no problem running the same page without specifying templates. The CompositeCreditCardForm is used as expected. I did not get the error that you mentioned in your post.
Here is what I did. I removed all the templates from the TemplatedCreditCardForm.aspx page:
<form id="form1" runat="server">
<custom:TemplatedCreditCardForm ID="ccf"
OnValidateCreditCard="ValidateCreditCard" runat="server"
CardholderNameText="Cardholder's Name"
CreditCardNoText="Credit Card No."
PaymentMethodText="Payment Method"
ExpirationDateText="Expiration Date"
SubmitButtonText="Submit" Font-Bold="true" />
<br /><br />
<asp:Label runat="server" ID="info" />
</form>
Regards,
Shahram
-----------------------
Shahram Khosravi, Ph.D.
Author of Professional ASP.NET 2.0 Server Control and Component Development
|