asp:AsyncPostBackTrigger Button

Jul 21, 2014 at 9:59 AM
<asp:UpdatePanel runat="server">
        <ContentTemplate>
             <asp:Timer ID="Timer1" runat="server" Interval="5000"></asp:Timer>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" OnSorting="GridView1_Sorting" PageSize="10">
                        <PagerSettings Position="Top" />
                        <Columns>
                            <asp:CommandField ShowSelectButton="True">
                            </asp:CommandField>
                           <%-- <asp:BoundField DataField="IssueId" HeaderText="Issue Id" SortExpression="IssueId" HtmlEncode="False"></asp:BoundField>
                            <asp:BoundField DataField="IssueName" HeaderText="Issue Type" SortExpression="IssueName" HtmlEncode="False"></asp:BoundField>
                            <asp:BoundField DataField="Status_Description" HeaderText="Issue Status" SortExpression="Status_Description" HtmlEncode="False"></asp:BoundField>--%>
                            <asp:BoundField DataField="Username" HeaderText="" SortExpression="Username" HtmlEncode="False"></asp:BoundField>
                            <%--<asp:BoundField DataField="Assign_Remarks" HeaderText="Remarks" SortExpression="Assign_Remarks" HtmlEncode="false"></asp:BoundField>--%>
                            <asp:TemplateField HeaderText="" SortExpression="message">
                                <ItemTemplate>
                                    <asp:Literal ID="lt_remarks" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.message").ToString().Replace(Environment.NewLine, "<br />").Replace("\r\n","<br />").Replace("\n","<br />")%>'></asp:Literal>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="" SortExpression="PostedDatetime">
                                <ItemTemplate>
                                    <asp:Literal ID="lt_postedDateTime" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PostedDatetime")%>'></asp:Literal>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <%-- <asp:BoundField DataField="ISACTIVE" HeaderText="ISACTIVE" SortExpression="ISACTIVE" HtmlEncode="False"></asp:BoundField>--%>
                        </Columns>
                          <PagerSettings Position="Top" Mode="NumericFirstLast" NextPageText="Next" PreviousPageText="Prev" LastPageText="Last" FirstPageText="First" />
                       <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                        <RowStyle BorderStyle="Solid" BorderWidth="1" BorderColor="black" />
                        <HeaderStyle CssClass="GvHeader" />        
                    </asp:GridView>
              <asp:Label ID="Label1" runat="server" Text=""></asp:Label> 
</ContentTemplate>
        <Triggers>
<asp:AsyncPostBackTrigger ControlID="btn_send" EventName="Click" />
             <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
        </Triggers>
        </asp:UpdatePanel>
  
    <asp:Label ID="lblmessage" runat="server" Text=""></asp:Label><br />
    <span><asp:TextBox ID="txt_message" runat="server" TextMode="MultiLine"></asp:TextBox><asp:Button ID="btn_send" runat="server" Text="Send" /></span>
            <asp:TextBox ID="txt_projectID" runat="server" Visible="False" Width="50px"></asp:TextBox>
            <asp:TextBox ID="txt_Username" runat="server" Visible="False" Width="50px"></asp:TextBox>
            <asp:TextBox ID="txt_role" runat="server" Visible="False" Width="50px"></asp:TextBox>>
<%-- --%> <%----%> <%-- --%>

Let say i insert below data at textbox:
1

2

3

If i insert asp:AsyncPostBackTrigger Button in the trigger area,
the data i submited will not display break line.
data show: 123


If i remove asp:AsyncPostBackTrigger Button from trigger area,
the data i submitted will display break line.
data show:
1

2

3





Can anyone advise me, how do i insert asp:AsyncPostBackTrigger at trigger area and the submitted data with show in break line.......