ashok kumar

ashok kumar

  • NA
  • 9
  • 0

how to use Viewdata globally to be used across all the views in a controller

Dec 31 2010 12:40 AM

Hi Friends,

My doubt is i have two tables with Id  as (Primary key) in one table  and  in the next table i have a Category Id field as Foreign key relationship with  the 1st tabl Id field...

I have created a create view for the 1st table.My question is i have created a partial view for the 2nd table,but i need to pass the Id value to the second tables category Id field...So is there any way to do it by using Viewdata??

Expecting ur reply..

Thanks in Adv,

Ashok


Answers (1)