ScriptManager ServiceReference DropDownExtender

        <asp:ScriptManager ID="ScriptManager1" runat="server">
        
<Services>
            
<asp:ServiceReference Path="Service.asmx" />
        
</Services>
        
</asp:ScriptManager>


1<asp:Panel ID="panelS" runat="server" CssClass="dropshow" Style="display: none; visibility: hidden; border:solid 1px #B5C4CC; width:384px;">
2                                                </asp:Panel>
3                                                <ajaxToolkit:DropDownExtender ID="ddd" runat="server" DropDownControlID="panelS"
4                                                    TargetControlID="tbSearch">
5                                                </ajaxToolkit:DropDownExtender>

 1    function setText() 
 2    {
 3        requestSimpleService = Service.HelloWorld(
 4
 5            document.getElementById('ctl00__tbIndex').value,       
 6            
 7            document.getElementById('ctl00_tbSearch').value,       
 8
 9            OnRequestComplete    
10
11            );
12
13        return false;
14    }

15
16    function OnRequestComplete(result) 
17
18    {
19        document.getElementById('ctl00_panelS').innerHTML=result;
20        document.getElementById('ctl00_panelS').style.display="block";
21    }

Code
posted @ 2008-03-26 21:15  yellowwood  阅读(632)  评论(0编辑  收藏  举报
Never Give UP