On Tue, Dec 28, 2010 at 5:00 AM, Santhosh Kumar
<[email protected]> wrote:
> Hi all,
>      I am working on LINQ programming I need a help from a selection
> statement
> ccDataContext context = new ccDataContext();
>        string a = (from q in context.leaves
>                     where q.Emp_ID == aa
>                     select new
>                     {
>                        q.cleave,          // Its a integer value
>                         q.sleave,            // Its a integer value
>                         q.year               // Its a integer value
>                     }).SingleOrDefault().ToString();
>         TextBox2.Text = a.ToString();
>  Can you Please tell me how can I separatly get those Integer values.
> Someone Help me with this.
> ----
---------------------------

If you set string[] a = or var a = you would have received an array or
a collection.

TextBox2.Text = a[0].ToString() ;
or
= a.cleave ;

-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

Reply via email to