cannot retain the control state after postback in asp.net
<p>I am working on asp.net 3.5.I have a requirement like dynamically generated a list of html input controls of type='radio'.I write a onclick() event to all controls.So if i click on any radio control,it will go to javascript function and then it will submit the form.Based on the value of the clicked radio input,related data is loaded to another control.</p>

<p>The all functionalities are working fine .
But now my problem is after page is submitted(after postback) the clicked radio input is not checked.
So how to retain the state of clicked radio button.</p>

<p>Actually i store the clicked radio button to the hidden field in javascript function.Then i tried to retrieve value from that hidden field and converted to radio button to set the property checked=true.But its not working.</p>

<p>So please help me.</p>

<pre><code>protected void Page_Init(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            IQueryable&lt;tblOrganization&gt; orglist = from o in db.tblOrganizations
                                              where o.CreatedBy == "Licensee" &amp;&amp; o.RefID == user.UserID
                                              select o;
        if (orglist != null &amp;&amp; orglist.Count() &gt; 0)
        {
            string list = "&lt;table border='0' cellpadding='0' cellspacing='0' width='350px'&gt;";
            foreach (tblOrganization o in orglist)
            {
                list += "&lt;tr&gt;";
                list += "&lt;td style='width:25px;' align='right' valign='top'&gt;&lt;input type='radio' runat='server' name='org' id='" + o.OrgID + "' ViewStateEnabled='true' onclick='javascript:fnBindGroup(" + o.OrgID + ",this)'  /&gt;&lt;/td&gt;";
                list += "&lt;td style='width:325px;hieght:25px' align='left' valign='top'&gt;&lt;a id='" + o.OrgID + "' href='#' onclick='javascript:fnSelectOrg(" + o.OrgID + ")' &gt;" + o.OrgName + "&lt;/a&gt;&lt;/td&gt;";
                list += "&lt;/tr&gt;";
            }
            list += "&lt;/table&gt;";
            divOrg.InnerHtml = list;
        }
        }
    }
</code></pre>
