autocompleteextender asp.net additional info
how i pass additional information use slight returning collection items? i'll try explain i mean, i have 2 calm boxes form, i need fill out names, formed specific comment id database. so, i need pass an integer getnamesfordropdown method. i couldn't figure out do, i wrong thing, used completionsetcount indeed pass information i needed:
[system.web.services.webmethod]
[system.web.script.services.scriptmethod]
public string[] getnamesfordropdown(string prefixtext, int count)
{
twine sql = "select fldname idaccountreps where idaccount = " + count.tostring();
//... rest slight removed, should adequate formula understand
//... wickedness wrongness i did.
}
in front side aspx file, i set completionsetcount formed off comment id user now regard page.
<ajaxtk:autocompleteextender
runat="server"
id="ac1"
targetcontrolid="txtaccname"
servicemethod="getnamesfordropdown"
servicepath="accountinfo.asmx"
minimumprefixlength="1"
enablecaching="true"
completionsetcount='<%# eval("idaccount") %>'
/>
so, that's unequivocally wrong way... right way?
Comments
Post a Comment