|
|
Online Product Info
|
| AutoInitiate Property |
|
|
Description AutoInitiate is set to True by default. This indicates that Auto DB should process your form as soon as a user submits your form (as long as form errors don't exist). By setting AutoInitiate to False, you are telling ASP.NET Auto Email that you will explicitly indicate when it should execute. You then call the Initiate() method to get Auto DB to execute when you want it to. So if you want precise control over Auto DB's execution time, simply set AutoInitiate="False" in the control tag...Then call the initiate() method in a button onclick handler or at the point you want ASP.NET Auto DB to execute. Example You would simply set AutoInitiate="False", then call the Initiate() method in your button's onclick handler as shown in Listing A below:
<%@ Register TagPrefix="cc1" Namespace="By360Impact.AutoDB" Assembly="By360Impact.AutoDB" %>
<%@ Page Language="vb" %> <script runat="server"> <HTML> <form id="Form1" method="post" runat="server"> </body>
Listing A
Default Value Usage
<cc1:AutoDB id="AutoDB1"
runat="server"
AutoInitiate="True"> </cc1:AutoDB>
Listing B
|
| © copyright 2004 360 IMPACT. All rights reserved.
|