Sunday, March 11, 2012

2nd Autocomplete Box

Yes, it works. Can you show your code?
Here is one way I did it (cut out code I think you need) The problem is what ever text box I do first when I go to the other text box it produces the same drop down.

<asp:ContentID="Content3"ContentPlaceHolderID="Main"Runat="Server">

<spanclass="pgTitle">Merchandise Security Service - User Maintenace</span>

<formname="userGroup_maint"action=""method="post">

<div>

<fontcolor="#0768be">Enter Name</font>

<table>

<tr>

<td><spanclass="black_bold">Last Name</span></td>

<td><inputid="lName"name="SK"type="text"/></td>

<td><spanclass="black_bold">First Name</span></td>

<td><inputid="fName"name="SK1"type="text"/></td>

<td><spanclass="black_bold">Middle Inital</span></td>

<td><inputid="MI"name="SKI"type="text"size="2"/></td>

</tr>

</table>

<fontcolor="#0768be">Manager's Information</font>

</div>

<divid="completionList"></div>

<divid="completionList1"></div>

<divid="divAccess">

<fontcolor="#0768be">Division</font>

</div>

<div>

<spanclass="pgConfMessage"><spanid="Results"></span></span>

</div>

<br/>

<divid="deptList">

</div>

<divid="frm_btns">

<br/>

<inputtype="hidden"name="modUG"/>

<inputtype="reset"name="rst_btn"value="Reset"/>

<inputtype="button"id="up_btn"value="Update"onclick="form_Update()"/>

</div>

</form>

<!-- ***************************************************

** Define properties of the auto suggest textbox **

***************************************************-->

<scripttype="text/xml-script">

<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">

<references>

<add src="ScriptLibrary/AtlasUI.js" />

<add src="ScriptLibrary/AtlasControls.js" />

</references>

<textBox id="lName">

<behaviors>

<autoComplete

completionList="completionList"

serviceURL="AutoCompleteService.asmx"

serviceMethod="GetUserLastName"

minimumPrefixLength="2"

completionSetCount="15"

completionInterval="500" />

</behaviors>

</textBox>

<textBox id="fName">

<behaviors>

<autoComplete

completionList="completionList1"

serviceURL="AutoCompleteService.asmx"

serviceMethod="GetUserFirstName"

minimumPrefixLength="2"

completionSetCount="15"

completionInterval="500" />

</behaviors>

</textBox>

</components>

</page>

</script>

</asp:Content>
Thanks for any help,
Clank

No comments:

Post a Comment