question
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
MA_TECHDataContext ma10 = new MA_TECHDataContext();
var validity = from c in ma10.customer_infos
where c.customer_lname == TextBox2.Text.ToString()
select new { c.customer_lname, c.customer_ID };
GridView1.DataSource = validity;
GridView1.DataBind();
// TextBox4.Text = Convert.ToString( validity.Single() );
Array ab;
ab = validity.ToArray();
TextBox4.Text = ab.GetValue(0).ToString();
i want the last name and id into individual strings, so i can display them in label and textboxes and where ever i want.
but the result is like """ { customer_lname = 222 , customer_ID = 2 } """"""""""""
??
please help