BehaviorID="AutoCompleteEx2"
ServicePath="../WebService/ResinWebService.asmx"
ServiceMethod="GetEmployeeByQuery"
MinimumPrefixLength="1"
CompletionInterval="1000"
FirstRowSelected="true"
EnableCaching="true"
OnClientItemSelected="IAmSelected"
<script language="javascript">
function GetSplitStr(srcStr,DelimiterCharacters)
{
var value=srcStr.split(DelimiterCharacters);
if(value.length<2)
{
return "error";
}
else
{
return value[0];
}
}
function IAmSelected( source, eventArgs)
{
//将返回值放入到返回值框
//得到隐藏列
var TextValue=eventArgs.get_text();
document.getElementById("hideValue").value=GetSplitStr(TextValue,',');//拆分得到关键字.innerText
}
</script>
ServicePath="../WebService/ResinWebService.asmx"
ServiceMethod="GetEmployeeByQuery"
MinimumPrefixLength="1"
CompletionInterval="1000"
FirstRowSelected="true"
EnableCaching="true"
OnClientItemSelected="IAmSelected"
<script language="javascript">
function GetSplitStr(srcStr,DelimiterCharacters)
{
var value=srcStr.split(DelimiterCharacters);
if(value.length<2)
{
return "error";
}
else
{
return value[0];
}
}
function IAmSelected( source, eventArgs)
{
//将返回值放入到返回值框
//得到隐藏列
var TextValue=eventArgs.get_text();
document.getElementById("hideValue").value=GetSplitStr(TextValue,',');//拆分得到关键字.innerText
}
</script>