1
Answer

Linq Help

David Smith

David Smith

11y
801
1
I want to make this in one linq possible or two linqs, can some assist me?



List<ColorNum> ColorNums = (from x in ColorPartNums where (x.Num == ColorPartNum) select x.ColorNums).First();

         List<color> color = (from y in ColorNums where (y.Num == ColorNum) select y.color).First();

                 List<color> colorFilteredList = color.Where(c => c.IsDutyColorValidated == true).ToList();
Answers (1)
0
Amit Choudhary

Amit Choudhary

NA 27.7k 3m 14y
for your second problem of ActiveTabIndex

you should go through my article on
Enhancing the functionality of Ajax Tab Control

it'll surely help you

Please Don't forget to mark "Do you like this post" if it helps.
0
Amit Choudhary

Amit Choudhary

NA 27.7k 3m 14y
hi friend,

there is two solution for this problem.

1. set EnableEventValidation="false" attribute of aspx <%@page--%> tag .

2. Or if you have some code written inside the page_load event if not necessary to call the code at postback then

  if(!Page.IsPostBack)
{
   // you complete code inside page_load event will go here
}

Any of the above method will solve your problem.. but choose second one carefully it may change your behavior of program while postback.

Please Don't forget to mark "Do you like this post" if it helps.
0
Dipa Ahuja

Dipa Ahuja

NA 4.1k 612.6k 14y
There may me some mistake in your code.. you have to write your code to find the mistake
Next Recommended Forum