ajax无刷新效果
<asp:Repeater ID="rp_zhineng" runat="server" OnItemDataBound="rp_zhineng_ItemDataBound">
<ItemTemplate>
<dl>
<dt onclick="qxcp_menu(3,<%#Container.ItemIndex%>)"><span><%#Eval("ClassName")%></span></dt>
<dd>
<asp:Label ID="lbParentID" runat="server" Visible="false" Text='<%#Eval("id")%>'></asp:Label>
<asp:Repeater ID="rp_zhineng1" runat="server" OnItemDataBound="rp_zhineng1_ItemDataBound">
<ItemTemplate>
<asp:Label ID="lbParentID1" runat="server" Visible="false" Text='<%#Eval("id")%>'></asp:Label>
<asp:LinkButton ID="lkzhineng1" runat="server" class="qxcp_class" CommandArgument='<%#Eval("id")%>' OnClick="lkzhineng1_Click" ><span>+ <%#Eval("ClassName")%></span></asp:LinkButton>
<asp:Repeater ID="rp_zhineng2" runat="server">
<ItemTemplate>
<asp:LinkButton ID="lkzhineng2" runat="server" CommandArgument='<%#Eval("id")%>' OnClick="lkzhineng2_Click"><span>- <%#Eval("ClassName")%></span></asp:LinkButton>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
//导航L
function menuL(){
var isOver = new Array;
var time = 400;
var dl = $("#menuL dl");
dl.each(function(i){
var B = dl.eq(i).find("dd");
var C = dl.eq(i).find("dt");
dl.eq(i).hover(function(){
C.addClass("hover");
var setTimeOut = timeOut( i );
isOver[i] = setTimeout(setTimeOut, time);
},function(){
clearTimeout( isOver[i] );
B.slideUp(time);
C.removeClass("hover");
})
})
function timeOut( i ){ return function(){ dl.eq(i).find("dd").slideDown(time); } }
}
//全线产品左导航
function qxcp_menu(m, n) { //m总数,n当前数
var dl = $("#menuL dl");
var time = 400;
for (i = 0; i <= m; i++) {
if (i == n) {
dl.eq(i).find("dd").slideDown(time);
}
else {
dl.eq(i).find("dd").slideUp(time);
}
}
}
页面上我已经 添加了ajax updatepanel可是左边的蓝框还是会闭合.
参考网址:http://www.dvaco.com/Products.aspx 左侧产品分类的开关与闭合 --------------------编程问答-------------------- 用JQUERY AJAX。UPDATEPANEL早过时了。 --------------------编程问答--------------------
现在很多都在用json.请问您能提供一下实例么.最好不是json的 --------------------编程问答--------------------
怎么会过时~~~这是目前还是最方便的,虽然效率上说不过去
补充:.NET技术 , ASP.NET