DetailsView not showing
<p>I have a gridview add a link button "Edit":</p>

<pre><code>&lt;asp:LinkButton ID="btnViewDetails" runat="server" text="Edit" CommandName="Select"&gt;&lt;/asp:LinkButton&gt;
</code></pre>

<p>and </p>

<pre><code>protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            using (var dataContext = new NewsStandAloneDataContext(Config.StandaloneNewsConnectionString))
            {
                DetailsView1.ChangeMode(DetailsViewMode.Edit);
                DetailsView1.Visible = true;
                var dataList =
                    dataContext.sp_Name(Convert.ToInt32(GridView1.SelectedValue), Value1);
                ScriptManager.RegisterStartupScript(this, GetType(), "show1", "openEditWindow();", true);
                DetailsView1.DataSource = dataList;
                DetailsView1.DataBind();
            }
        }
</code></pre>

<p>But my details view doesnot show anything.<br>
Can someone help me out please?</p>
