Click here to Skip to main content
15,888,239 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi friends
Plese help me

i am new to mvc

how to access data stored in viewdata in script using jquery
Posted

1 solution

try this Solution

var yValue = "@ViewData["value"]";

or

var yValue = '@ViewData["value"]';


Notify me if Working
Thanks
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900