when i firstly open webpage, then javascript workinbg fine,but when i fires row updating event of gridview,then javascript not working.
$(document).ready(function(){
$('.chat_head').click(function(){
$('.chat_body').slideToggle('slow');
});
$('.msg_head').click(function(){
$('.msg_wrap').slideToggle('slow');
});
$('.msg_head1').click(function () {
$('.msg_wrap1').slideToggle('slow');
});
});
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="../script.js"></script>
<div class="chat_box">
<div class="chat_head"> Chat Box</div>
<div class="chat_body">
<div class="col-md-12"> <%--Krishna Teja--%>
<b>Clients</b>
<asp:GridView ID="grdclient" runat="server" DataKeyNames="clientid,company" AutoGenerateColumns="false" GridLines="None" OnRowUpdating="grdclient_RowUpdating" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<div class="user">
<asp:LinkButton ID="LinkButton1" runat="server" Font-Underline="false" ForeColor="Black" CommandName="update" Text='<%# Eval("company") %>'></asp:LinkButton>
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</div>
<div class="msg_box" id="msgbox" style="right:290px">
<div class="msg_head">Client - <asp:Label ID="lblcompanyid" runat="server" Visible="false" Text="id"></asp:Label><asp:Label ID="lblcompany" runat="server" Text=""></asp:Label>
<div class="close" >
<asp:Button ID="btncloseclient" runat="server" BorderStyle="None" BackColor="#3498db" Font-Size="Smaller" Font-Bold="true" ForeColor="White" Text="X" OnClick="btncloseclient_Click" /></div>
</div>
<div class="msg_wrap">
<div class="msg_body" style="overflow:auto;">
<asp:GridView ID="grdchat" runat="server" GridLines="None" >
</asp:GridView>
<asp:TextBox ID="txtboxchat2" Width="98%" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
<asp:Button ID="btnsavechat2" runat="server" Style="display: none" Text="Button" OnClick="Save" />
protected void Save(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert", "<script>alert('here i will add code in databse for client,just to sample here');</script>", false);
}