To send a value from partial view to layout view . i used in partial view as
viewbag.var="Device" and retrieve value on layout view by
<h1> @viewbag.var </h1> but not showing any values.plaese help .thanks in advance
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalTo send a value from partial view to layout view . i used in partial view as
viewbag.var="Device" and retrieve value on layout view by
<h1> @viewbag.var </h1> but not showing any values.plaese help .thanks in advance
ViewDataDictionary. The answers here give a few options you could consider