问题描述
做了个类似百度搜索的效果,可是出不来,怎么调试谁知道?用了WEB服务,或者是WEB服务怎么调试
解决方案
解决方案二:
怎么没人呢
解决方案三:
webServer的结果是对的,但是这个控件就是没效果代码如下:
解决方案四:
<%@MasterLanguage="C#"AutoEventWireup="true"CodeFile="HeaderMaster.master.cs"Inherits="HeaderMaster"%><%@RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headid="Head1"runat="server"><title>无标题页</title><linkhref="css/MainCss.css"rel="stylesheet"type="text/css"/><%--<scripttype="text/javascript">functioncheckRadio(){varkeys=document.getElementById("keys").value;varo=document.getElementsByName("rad");if(o[0].checked==true){document.getElementById("form1").action="SearchSinger.aspx?keys="+keys;}else{document.getElementById("form1").action="SearchSong.aspx?keys="+keys;}}</script>--%><scripttype="text/javascript"language="javascript">functioncolumnSelected(which){document.getElementById("index").className=null;document.getElementById("musicbox").className=null;document.getElementById(which).className="current_item";}</script></head><body><divid="header"><formid="form1"runat="server"><asp:RadioButtonListID="RadioButtonList1"runat="server"RepeatDirection="Horizontal"><asp:ListItemText="歌手"></asp:ListItem><asp:ListItemText="歌曲名"></asp:ListItem></asp:RadioButtonList><asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager><asp:UpdatePanelID="UpdatePanel1"runat="server"><ContentTemplate><asp:TextBoxID="keys"runat="server"></asp:TextBox><cc1:AutoCompleteExtenderID="AutoCompleteExtender1"runat="server"TargetControlID="keys"MinimumPrefixLength="1"CompletionInterval="1000"CompletionSetCount="20"ServiceMethod="SearchMethod"ServicePath="Search.asmx"></cc1:AutoCompleteExtender><asp:ButtonID="SearchBtn"runat="server"Text="搜索"onclick="SearchBtn_Click"/></ContentTemplate></asp:UpdatePanel><divid="loginState"><asp:PanelID="Panel2"runat="server"><asp:LabelID="UserNameLab"runat="server"Visible="False"></asp:Label><asp:ButtonID="quit"runat="server"Text="注销"Visible="False"/></asp:Panel><asp:PanelID="Panel3"runat="server">用户名:<asp:TextBoxID="UserNameTextBox"runat="server"></asp:TextBox>密码:<asp:TextBoxID="PassWordTextBox"runat="server"></asp:TextBox><asp:ButtonID="LoginButton"runat="server"Text="登陆"onclick="LoginButton_Click"/><asp:ButtonID="RegisterButton"runat="server"Text="注册"onclick="RegisterButton_Click"/></asp:Panel></div></form><divid="menu"><ul><liid="index"class="current_item"><ahref="Default.aspx"onclick="columnSelected('index')">首页</a></li><liid="musicbox"><ahref="PlayList.aspx"onclick="columnSelected('musicbox')">个人音乐盒</a></li></ul></div></div><div><asp:ContentPlaceHolderid="ContentPlaceHolder1"runat="server"></asp:ContentPlaceHolder></div></body></html>