Leave this issue i did it..... by the help of for each.....
it done it easily brothers...
 Thanks

On Wed, May 13, 2009 at 5:35 PM, Mohammed.hussain
<[email protected]>wrote:

>
> i want to work on looping at datacontect object... how i can do
> this....
>
> e.g;
> IQuerable <module> _module = datacontext.GetModuleRecords(1);
>
> for(int i ; i<= _module.Count(); i++)
> {
> if _module.first().Modulename.StartWith("bttn")
> {
> Button _btn  = new Button();
> _btn.Name = _module.first().Modulename;
> _btn.Text= _module.first().FormName;;
>
> this.panel1.Controls.Add(_btn);
> }
> }
>
> the above is the case which i want to implement, here i use
> "_module.first().Modulename.StartWith("bttn")"
>
> by the use of _module.first() it can take 1st elemnet in an array of
> this object
> and i want to check in for loop for each item in _module object... how
> i can do this LinqtoSql....
>
>
> Relier are higher appricateable
>  Thanks




-- 
Regards,
Muhammad hussain

Reply via email to