SemanticItem Property for French (Canada)
Gets or sets the ID of the SemanticItem control that receives the credit card number. Read/write.
Usage
ASP.NET markup: | <speech:CreditCardNumber SemanticItem="..." /> |
Get value: | String = CreditCardNumber.SemanticItem; |
Set value: | CreditCardNumber.SemanticItem = String; |
Data type: | String |
Required: | Yes |
Remarks
To protect data collected by this control, set the SensitiveData property of the associated SemanticItem control to a value of True.
The control throws an ArgumentNullException if this property is not specified or an ArgumentException if this property does not specify a valid SemanticItem on the page.
Attribute data
When the CreditCardNumber control has collected a credit card number successfully, it places the following attribute in the SemanticItem property.
Attribute Name | Data Element |
---|---|
cardType | Credit card type |
Application authors can reference SemanticItem attribute data by means of the GetAttribute method of the client-side SemanticItem object.
Example
The following example is adapted from the Microsoft Speech Application SDK Credit Card sample.
<form id="Form1" method="post" runat="server">
...
<speech:SemanticMap ID="CCSemanticMap" runat="server">
<speech:SemanticItem ID="siCCNumber"
TargetElement="tbCCNumber" TargetAttribute="value"
SensitiveData="True">
</speech:SemanticItem>
<speech:SemanticItem ID="siCCMonth" runat="server"
TargetElement="tbCCMonth" TargetAttribute="value">
</speech:SemanticItem>
<speech:SemanticItem ID="siCCYear" runat="server"
TargetElement="tbCCYear" TargetAttribute="value">
</speech:SemanticItem>
</speech:SemanticMap>
<speech:CreditCardNumber
ID="GetCreditCardNumber"
SemanticItem="siCCNumber"
QuestionPrompt="rentrer les 16 chiffres de votre numéro de carte de crédit diners club s'il-vous-plaît"
AllowAmex="False"
AllowDinersClub="True"
AllowDiscover="False"
AllowMasterCard="False"
AllowVISA="False"
EnableViewState="False"
runat="server">
</speech:CreditCardNumber>
<speech:CreditCardDate
ID="GetCreditCardDate"
QuestionPrompt="quel est la date d'expiration?"
MonthSemanticItem="siCCMonth"
YearSemanticItem="siCCYear"
runat="server">
</speech:CreditCardDate>
<asp:TextBox ID="tbCCNumber" runat="server"></asp:TextBox>
<asp:TextBox ID="tbCCMonth" runat="server"></asp:TextBox>
<asp:TextBox ID="tbCCYear" runat="server"></asp:TextBox>
...
</form>
See Also
CreditCardNumber Class | CreditCardNumber Constructor | CreditCardNumber Members | CreditCardNumber Properties | CreditCardNumber Methods | CreditCardNumber Events | CreditCardNumber Remarks