1. text box<br /> 2. save button
1. aspx code
<cc1:Accordion ID="Accordion1" runat="server" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent" SelectedIndex="-1" FadeTransitions="true" SuppressHeaderPostbacks="true" TransitionDuration="250" FramesPerSecond="40" RequireOpenedPane="false" AutoSize="None" style="text-align:center;" > <Panes> <cc1:AccordionPane ID="AccPan1" runat="server" önclick="setFocus();"> <Header> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td style="color:#3B8DBD;text-align:left;"> Comments: </td> </tr> </table> </Header> <Content> <asp:TextBox TextMode="MultiLine" runat="server" Width="80%" Height="100px" ID="txtComments" onkeypress="appendText(event);" Text="* "> </asp:TextBox> <input type="hidden" value="0" id="hdn1" /> <div style="text-align:right"> <asp:Button runat="server" Id="btnSaveComments" Text="Save" style="margin:5px 110px 0px 0px;"/> </div> </Content> </cc1:AccordionPane> </Panes> </cc1:Accordion>
2.code behind code
protected void btnSaveComments_Click(object sender, EventArgs e) { string[] comments = txtComments.Text.Split('*'); txtComments.Text = ""; }
<asp:Button runat="server" Id="btnSaveComments" OnClick="btnSaveComments_Click" Text="Save" style="margin:5px 110px 0px 0px;"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)