AutoPostBack Property for French (Canada)
Gets or sets whether a control will post back to the server before moving on to the next Speech Control in the dialog. Read/write.
Usage
ASP.NET markup: | <speech:ApplicationControl AutoPostBack="..." /> |
Get value: | Boolean = ApplicationControl.AutoPostBack; |
Set value: | ApplicationControl.AutoPostBack = Boolean; |
Data type: | System.Boolean |
Required: | No; Default: False |
Remarks
If AutoPostBack is True, the control raises the CompleteLast event immediately after OnClientCompleteLast has executed. If AutoPostBack is False, the control raises the CompleteLast event when the next postback occurs. The control throws an exception if AutoPostBack is True and CompleteLast is not specified.
The ApplicationControl control conforms to the ASP.NET event model. For more information on events, autopostback and event delegation in ASP.NET, see ASP.NET Server Control Event Model.
Example
The following example demonstrates the AutoPostBack property that is used in the CreditCardNumber Application Speech Control.
<form id="Form1" method="post" runat="server">
...
<speech:CreditCardNumber
ID="GetCreditCardNumber"
SemanticItem="siCreditCardNumber"
QuestionPrompt="rentrer les 16 chiffres de votre numéro de carte de crédit diners club s'il-vous-plaît"
AutoPostBack="True"
AllowAmex="False"
AllowDinersClub="True"
AllowDiscover="False"
AllowMasterCard="False"
AllowVISA="False"
AllowCommands="True"
runat="server">
</speech:CreditCardNumber>
<speech:CreditCardDate
ID="GetCreditCardDate"
QuestionPrompt="quel est la date d'expiration?"
AutoPostBack="True"
YearSemanticItem="siCreditCardYear"
MonthSemanticItem="siCreditCardMonth"
AllowCommands="False"
runat="server">
</speech:CreditCardDate>
<Speech:command ID="CmdHelp" Scope="Form1" Type="Help"
XPathTrigger="/SML/Command/Help" runat="server" >
<grammar ID="CmdHelp" src="Grammars/Commands.grxml" runat="server" />
</Speech:command>
...
</form>
See Also
ApplicationControl Class | ApplicationControl Constructor | ApplicationControl Members | ApplicationControl Properties | ApplicationControl Methods | ApplicationControl Events | ApplicationControl Remarks