Hi Amol111,
Refer below sample is working.
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({ selector: 'textarea', height: 200 });
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" />
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"> </script>
<script type="text/javascript">
$(function () {
$('[id*=grdRequestDetails]').prepend($("<thead></thead>").append($(this).find("tr:first"))).DataTable({
"responsive": false,
"sPaginationType": "full_numbers",
"bPaginate": true,
"bSort": true,
"iDisplayLength": 10,
"stateSave": true,
"stateDuration": 60 * 1
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager runat="server" />
<div class="x_content">
<div class="form-horizontal">
<div class="form-group">
<div class="col-md-12 col-lg-12">
<asp:Label ID="Label8" Text="Enter Issue details in below textbox" runat="server"
CssClass="control-label" Font-Bold="true" />
</div>
<div class="col-md-12 col-lg-12">
<asp:TextBox ID="txtIssueDesc" runat="server" TextMode="MultiLine" CssClass="form-control"
Placeholder="Issue" AutoPostBack="true" />
</div>
</div>
<div class="form-group">
<div class="col-md-offset-3 col-lg-offset-3 col-lg-3 col-md-3">
<asp:LinkButton ID="btnSave" Text="Save" runat="server" CssClass="btn btn-block btn-success btn-md"
OnClick="btnSave_Click"> <span class="fa fa fa-paper-plane-o"></span> Submit Request </asp:LinkButton>
</div>
</div>
<asp:Label ID="lblMessage" runat="server" />
</div>
</div>
<asp:GridView runat="server" ID="grdRequestDetails" />
</div>
</form>
</body>
</html>
Namespaces
using System.Data;
Code
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("Id");
dt.Rows.Add(1);
dt.Rows.Add(2);
dt.Rows.Add(3);
dt.Rows.Add(4);
dt.Rows.Add(5);
grdRequestDetails.DataSource = dt;
grdRequestDetails.DataBind();
}
protected void btnSave_Click(object sender, EventArgs e)
{
lblMessage.Text = txtIssueDesc.Text;
}
Screenshot