Postback request with gridview giving strange output
<pre><code> protected void gvRequest_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Delete")
            {
                bm.DeleteBookRequest(Convert.ToInt32(e.CommandArgument));
                GetBooks();
            GetRequest();
            }
        }

    &lt;asp:GridView ID="gvBooks" runat="server" AutoGenerateColumns="false" DataKeyNames="Id"
            BorderStyle="None" OnRowCommand="gvBooks_RowCommand" CssClass="gvBooks" CellPadding="5"
            CellSpacing="7" ForeColor="Blue" OnRowDeleting="gvBooks_RowDeleting"&gt;
            &lt;Columns&gt;
                &lt;asp:BoundField DataField="Id" HeaderText="Id" /&gt;
                &lt;asp:BoundField DataField="Title" HeaderText="Title" /&gt;
                &lt;asp:TemplateField&gt;
                    &lt;ItemTemplate&gt;
                        &lt;asp:LinkButton CommandName="Select" CommandArgument='&lt;%# Eval("Title") %&gt;' runat="server"
                            ID="lb_Id"&gt;Select&lt;/asp:LinkButton&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField&gt;
                    &lt;ItemTemplate&gt;
                        &lt;asp:LinkButton CommandName="Delete" CommandArgument='&lt;%# Eval("Title") %&gt;' runat="server"
                            ID="lb_Title"&gt;Delete&lt;/asp:LinkButton&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
            &lt;/Columns&gt;
        &lt;/asp:GridView&gt;
        &lt;asp:GridView ID="gvReviews" runat="server" AutoGenerateColumns="false" OnRowCommand="gvReviews_RowCommand"
            OnRowDeleting="gvReviews_RowDeleting" CellPadding="5" CellSpacing="7" ForeColor="Blue"&gt;
            &lt;Columns&gt;
                &lt;asp:BoundField DataField="Id" HeaderText="Id" /&gt;
                &lt;asp:BoundField DataField="Subject" HeaderText="Subject" /&gt;
                &lt;asp:BoundField DataField="Username" HeaderText="Username" /&gt;
                &lt;asp:BoundField DataField="Review" HeaderText="Review" /&gt;
                &lt;asp:TemplateField&gt;
                    &lt;ItemTemplate&gt;
                        &lt;asp:LinkButton CommandName="Delete" CommandArgument='&lt;%# Eval("Id") %&gt;' runat="server"
                            ID="lb_IdDel"&gt;Delete&lt;/asp:LinkButton&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
            &lt;/Columns&gt;
        &lt;/asp:GridView&gt;
        &lt;asp:GridView ID="gvRequest" runat="server" onrowcommand="gvRequest_RowCommand" AutoGenerateColumns="false"&gt;
            &lt;Columns&gt;
                &lt;asp:TemplateField&gt;
                    &lt;ItemTemplate&gt;
                    &lt;asp:Label ID="lblName" runat="server" Text='&lt;%# Eval("Title") %&gt;'&gt;&lt;/asp:Label&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField&gt;
                    &lt;ItemTemplate&gt;
                    &lt;asp:Label ID="lblUsername" runat="server" Text='&lt;%# Eval("Username") %&gt;'&gt;&lt;/asp:Label&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField&gt;
                    &lt;ItemTemplate&gt;
                    &lt;asp:LinkButton ID="lbDelete" CommandName="Delete" CommandArgument='&lt;%# Eval("id") %&gt;' runat="server" Text="Delete"&gt;&lt;/asp:LinkButton&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
            &lt;/Columns&gt;
        &lt;/asp:GridView&gt;
</code></pre>

<p>when I click on the delete linkbutton the output is a blank page.</p>

<p>The view source after the click button is clicked is as follows:</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content="text/html; charset=windows-1252" http-equiv=Content-Type&gt;
&lt;SCRIPT type=text/javascript src="http://www.google-analytics.com/ga.js" 
async="true"&gt;&lt;/SCRIPT&gt;

&lt;SCRIPT type=text/javascript src="http://sg.perion.com/v1.1/js/gt.js" 
async="true" onload="null"&gt;&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;

internal void DeleteBookRequest(int id)
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "Delete from bookrequest where id=@id";
            cmd.Parameters.Add("@id", SqlDbType.BigInt, 19, "id").Value = id;
            cmd.Connection = connection;
            connection.Open();
            cmd.ExecuteNonQuery();
            connection.Close();            
        }
</code></pre>
