Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

FeatureSearchTask Control



contact author | download help | add bookmark | view bookmarks
Author Stan Harrison
File Name FeatureSearch.zip
Language C#
Last Modified Feb 28 2007
Status of work Public Domain
Software ArcGIS Server
File Size 62.71 kb
Downloads 883

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
The FeatureSearchTask Control is a custom Task that can be added to the TaskManager. This control creates a DropDownList that contains all the searchable layers. When the user selects a layer, a list of all the fields will be displayed to the user with an adjacent TextBox. A data type validation control will be associated with the TextBox if the field type is numeric or date. If the field is a domain then a DropDownList control will be used instead of the TextBox. The DropDownList will be populated with either the coded values or the names of the domain values.

The control is compiled into a DLL. The JavaScript file for the control is embedded in the DLL. Included is a test asp.net page that demonstrates how to the use the control.

To use the control:
1) Copy the DLL to the bin directory of your project.
2) Register the control with your ASPX page.
<%@ Register Assembly="WorldViewSolutions.ArcGISServer.WebControls.FeatureSearch" Namespace="WorldViewSolutions.ArcGISServer.WebControls.FeatureSearch" TagPrefix="wvs" %>
3) Add the control tag to the TaskManager Control on your page