This control is no stranger to everyone, that is, when there are multiple panels, you only want to display one panel at a time and use this thing for control. I will not talk about the simple use of this thing, how can I add events to a panel of this control? I believe anyone who has used this control knows that the Panel in this control, that is, the Source code Set the source of the button Code Copy to <content> of the accordionpane control.
The following figure shows the source code:
Source code of the image
1 < C0: accordionpane ID = " Accordionpane1 " Runat = " Server " Font - Overline = " True " Backcolor = " Navy " >
2 < Header >
3 < BR />
4 < A href = " # " > Test Event </ A >
5 < BR />
6 </ Header >
7 < Content >
8 < ASP: updatepanel ID = " PPP " Runat = " Server " >
9 < Contenttemplate >
10 < ASP: Panel ID = " Panel1 " Runat = " Server " Height = " 50px " Width = " 125px " Backcolor = " Lightblue " >
11 < ASP: Label ID = " Label1 " Runat = " Server " Text = " Label " > </ ASP: Label >
12 < ASP: textbox ID = " Textbox1 " Runat = " Server " > </ ASP: textbox >
13 < ASP: button ID = " Button1 " Runat = " Server " Onclick = " Button#click " Text = " Button " /> </ ASP: Panel >
14 </ Contenttemplate >
15 </ ASP: updatepanel >
16 </ Content >
17 </ C0: accordionpane >
Then OK ,. Note that I have an updatepanel control in it, which I tested specially. I found that updatepanel can be used to request data asynchronously, however, I can't write it like above, so an error will be reported, and the error prompt is very simple, that is, the accordionpane should be placed in an updatepanel, therefore, two updatepanels are required for the use of refreshing items in this control. One is put on the place I wrote, the other is put out of accordionpane, or the other is updatepanel, is to use the outermost one. The reason why I put an updatepanel In the content is different from the tabcontainer control, it seems that I have mentioned before that using updatepanel IN THE <contenttemplate> OF THE tabcontainer control does not mean that an updatepanel is required, the two controls have some details. Now I am studying how to use a custom style sheet for the tabcontainer control. It seems that there are also some problems. After reading the instructions on the official website, foreigners have also mentioned this problem, but I have not seen the solution. I don't know which of the following styles I have used when using this control. In the properties box of this control, we can see cssclass = Ajax _ tab_xp, but there is no switch to the source code. After reading the source code of the control, this control currently uses its own style. You must continue to study the custom style ....