???大家有使用过AjaxControlToolkit,请指点一下?
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "Default.aspx.cs " Inherits= "_Default " %>
<%@ Register Assembly= "AjaxControlToolkit " Namespace= "AjaxControlToolkit " TagPrefix= "ajaxToolkit " %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN " "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head runat= "server ">
<title> Untitled Page </title>
</head>
<body>
<form id= "form1 " runat= "server ">
<asp:ScriptManager ID= "ScriptManager1 " runat= "server " />
<ajaxToolkit:Accordion ID= "MyAccordion " runat= "server " SelectedIndex= "0 "
HeaderCssClass= "accordionHeader " ContentCssClass= "accordionContent "
FadeTransitions= "false " FramesPerSecond= "40 " TransitionDuration= "250 " AutoSize= "None ">
<Panes>
<ajaxToolkit:AccordionPane ID= "AccordionPane1 " runat= "server ">
<Header> <a href= " " onclick= "return false; " class= "accordionLink "> 1. Accordion </a> </Header>
<Content>
<asp:ListBox ID= "ListBox1 " runat= "server " Height= "122px " Width= "124px ">
<asp:ListItem> 452 </asp:ListItem>
<asp:ListItem> 12312 </asp:ListItem>
<asp:ListItem> 1231 </asp:ListItem>
<asp:ListItem> 123123 </asp:ListItem>
<asp:ListItem> 123123 </asp:ListItem>
</asp:ListBox>
</Content>
</ajaxToolkit:AccordionPane>
<ajaxToolkit:AccordionPane ID= "AccordionPane2 " runat= "server ">
<Header> <a href= " " onclick= "return false; " class= "accordionLink "> 2. AutoSize </a> </Header>
<Content>
</Content>
</ajaxToolkit:AccordionPane>
<ajaxToolkit:AccordionPane ID= "AccordionPane3 " runat= "server ">
<Header> <a href= " " onclick= "return false; " class= "accordionLink "> 3. Control or Extender </a> </Header>
<Content>
</Content>
</ajaxToolkit:AccordionPane>
<ajaxToolkit:AccordionPane ID= "AccordionPane4 " runat= "server ">
<Header> <a href= " " onclick= "return false; " class= "accordionLink "> 4. What is ASP.NET AJAX? </a> </Header>
<Content>
<%= GetContentFillerText()%>
</Content>
</ajaxToolkit:AccordionPane>
</Panes>
</ajaxToolkit:Accordion>
</form>
</body>
</html>
在.cs中
protected void Page_Load(object sender, EventArgs e)
{
ListBox1.Enabled = false; //
我想在这里改变ListBox1的属性,怎么不可以,
有什么其它办法,希望高人指点,感激不尽..
}
[解决办法]
汗 我回过了
改成 ((ListBox)MyAccordion.FindControl( "ListBox1 ")).Enabled = false;
[解决办法]
学习AJAX中...
[解决办法]
帮顶
[解决办法]
AjaxToolKit倒是用过,不过我也只是用过里面的几个组件而已,没有系统的学。
你这个正好我没用过。
只能帮你顶一下了