jaydeep shah

jaydeep shah

  • NA
  • 44
  • 3.9k

query pass perameter

Oct 8 2015 9:35 AM
i get uniq id in each button ..i have lots of button
 
//view  
@Html.ActionLink(Convert.ToString(itemN), "ifcondi", new { id = item.Id.ToString() })  
 
 
//controller
 
 
var data1 = (from c in db.RowItems
join a in db.categories on c.CategoryItemId equals a.category_id
join d in db.DirectItems on c.DirectItemId equals d.Id
where d.ItemName == "PLASMA 60"       
 
1> this query has no proble ,
2>  wht i write insted of plazma 60   ...bcz plazma 60 is static query  and i required dynamic query 
 

Answers (2)