Problem in Manual ID Code
<p>My Auto ID is already working. But, I tried a Manual ID code and insert the value in my database.. My Questions is how i able to get the value of the manual id. Yes, it's simple but not in a read only.</p>

<p>Please check my code:</p>

<p>Deleting - Its working!</p>

<pre><code>CMSInsurance oInsuranceDelete = new CMSInsurance();
                            Insurance oInsurance = new Insurance();

                            List&lt;InsuranceLabel&gt; lstName = oInsuranceDelete.RetrieveInsuranceList();
                            foreach (InsuranceLabel item in lstName)
                            {
                                var code = e.CommandArgument;
                                if (item.InsuranceCode.ID == code.ToString())
                                {
                                    oInsurance.InsuranceCode = item.InsuranceCode; //proper getting the value of Insurance Code instead of txtCode.text or  e.CommandArgument
                                    oInsuranceDelete.DeleteInsurance(oInsurance);
                                    bind();
                                }
                            }
</code></pre>

<p>Inserting Auto ID code - Its Working!</p>

<pre><code>            oInsurance.Name = txtName.text // for string

            CMSInsurance oCMSInsurance = new CMSnsurance();
            oCMSInsurance.CreateInsurance(oInsurance);
</code></pre>

<p>Inserting Manual ID Code - Not working..</p>

<pre><code>    //Get the Manual value of Insurance Code
    //For Insert a New Insurance
    CMSInsurance oCMSInsuranceManual= new CMSInsurance ();
    List&lt;InsuranceLabel&gt; lstList = oCMSInsuranceManual.RetrieveInsuranceList();
    foreach (InsuranceLabel item in lstList)
    {
        if (item.InsuranceCode.ID != Session["AutoCode"])
        {
        oInsurance.InsuranceCode = item.InsuranceCode; // I can't insert a string like txtCode.. is there anyway to solve this issue? 
        }
    }
</code></pre>

<p>Thanks!</p>
