i am doing my code in asp.net c# three tire architecture using linq . in this process
i have some datas in array list . i want to show that data into textbox pls help me? how to do that
this is my code:
ArrayList FLlist = new ArrayList();
using (Company_DetailsDataContext compnydb = new Company_DetailsDataContext())
{
var sa = from a in compnydb.sp_ShipViewControlFL() select new { a.Code, a.Name };
System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach (var item in sa) //.OfType<string[]>().SelectMany(i => i))
{
sb.Append(item);
}
txtshipcode.Text = sb.ToString();
txtshipName.Text = sb.ToString().Trim();