Getting the data from datatable in asp.net
<p>in my web application i am using datatable and inserting outlook contacts in that.
this is my code</p>

<pre><code>    DataTable myTable = new DataTable();
    DataRow dr = myTable.NewRow();
    DataColumn myDataColumn = new DataColumn();
    myDataColumn.DataType = Type.GetType("System.String");
    myDataColumn.ColumnName = "Email";
    myTable.Columns.Add(myDataColumn);        

    Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
    foreach (Microsoft.Office.Interop.Outlook.AddressList addList in oApp.Session.AddressLists)
    {

        foreach (Microsoft.Office.Interop.Outlook.AddressEntry addEntry in addList.AddressEntries)
        {
            dr["Email"] = addEntry.Address.ToString();
            myTable.Rows.Add(dr);
            dr = myTable.NewRow();
            //Response.Write(addEntry.Address.ToString());
        }

    }
</code></pre>

<p>My doubt is can i write the code like this 
when contact is insert into mytable. the details of the row can read into a string like this</p>

<p>string s=  myTable.Rows[0]["Email"].ToString(); in foreach </p>
