设置Web服务的上下文密钥 [英] Set Context Key of web service

查看:132
本文介绍了设置Web服务的上下文密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我有一个下拉列表文本框 autocompleteextender .由于dropdownlist的值与 autocompeteextender的 contextkey 的值相关,因此也需要更改,但它不会反映或获取名称作为值dropdownlist的值会相应地更改,直到发生回发或第一次加载页面时为止.但是我想当我更改dropdownlist中的值并在文本框中写一些内容时,然后Web服务根据 dropdownlist 值给我 name ....我的JavaScript代码是在下面给出


Hello Friends,

I''ve a dropdownlist and textbox with autocompleteextender. As the value of dropdownlist is chaged as to the value of autocompeteextender''s contextkey is also to be changed but it''s not reflecting or getting the name as the value of dropdownlist get changed accordingly until a postback occurs or as the page get loaded first time. But i want as i change the value in dropdownlist and write something in textbox then web service give me name according the dropdownlist value....... my javascript code is given below


var ddlWise=document.getElementById(ddlWise_Client);

        var conKey;
        if(ddlWise.value=="GROUP")
        {
            conKey="GROUP";
        }
        else if(ddlWise.value=="TYPE")
        {
            conKey="TYPE";
        }
        else
        {
            conKey="ACM";
        }

        var autoComplete=$find('ctl00_cphCommonMaster_AutoCompleteExtender2');
        autoComplete.set_contextKey(conKey);





推荐答案

find(' ctl00_cphCommonMaster_AutoCompleteExtender2' ); autoComplete.set_contextKey(conKey);
find('ctl00_cphCommonMaster_AutoCompleteExtender2'); autoComplete.set_contextKey(conKey);






这篇关于设置Web服务的上下文密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆