1
Answer

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

Ask a question
ashok kumar

ashok kumar

13y
1.8k
1

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)