Online Product Info
Scope Property

Description
The Scope Property allows you to process only the form fields that occur within a specific DIV, Table, or Panel tag/control. This is great if you have multiple forms on a given page and only want to process the fields in the main form for instance.

Example
See Listing A for an example of how to setup your form fields within a scope.

<%@ Register TagPrefix="cc1" Namespace="By360Impact.AutoDB" Assembly="By360Impact.AutoDB" %>
<%@ Page Language="vb" %>

<HTML>
<Body>

<form id="myform" runat="server">
<table border="0" id="MainFormFields" runat="server" width="350"> <!--could also be DIV-->
  <tr>
    <td>Name:</td><td><input type="textbox" id="Full_Name" runat="server></td>
  </tr>
  <tr>
    <td>Age:</td><td><input type="textbox" id="Age" runat="server></td>
  </tr>
</table>
<input type="submit" id="btnSubmit" runat="server">

<cc1:AutoDB id="AutoDB1" runat="server" Scope="MainFormFields"> </cc1:AutoDB>
</form>

</Body>
</HTML>
Listing A

Related Properties

Usage
See Listing A for an example of the IgnoreFieldList property in the Auto DB control tag.

<cc1:AutoDB id="AutoDB1" runat="server" Scope="MainFormFields"> </cc1:AutoDB>
Listing A

Related Properties
IgnoreFieldList

 

© copyright 2004 360 IMPACT. All rights reserved.