Bind session data in grid
<p>I am trying to load session data in grid but no data is loaded my code is <br></p>

<pre><code>protected void imageAddExtraField_Click(object sender, ImageClickEventArgs e)
    {
        List&lt;ContentInfo&gt; lstExtraFields = new List&lt;ContentInfo&gt;();
        if (Session["ExtraField"] != null)
        {
            lstExtraFields = Session["ExtraField"] as List&lt;ContentInfo&gt;;
        }
        else
        {
            ContentInfo obj = new ContentInfo();
            obj.ExtraFieldValue = ckEditorExtraField.Text;
            obj.ExtraField = ddlExtraField.SelectedItem.ToString();
            lstExtraFields.Add(obj);
            gdvExtraField.DataSource = lstExtraFields;
            gdvExtraField.DataBind();
            Session["ExtraField"] = lstExtraFields;
        }
    }
</code></pre>

<p><br>
i am using <strong>VS2008</strong> any solution thanks.</p>
