G
G
GetB2014-04-14 20:05:53
JavaScript
GetB, 2014-04-14 20:05:53

How to pass value of javascript variable to View?

How can I pass a javascript variable value to a View so that it can be assigned to the ViewBag?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LChaos, 2014-04-14
@GetB

As far as I know, the ViewBag value is assigned on the server side, and you cannot change it on the client side. In other cases, you can try to do as described here
stackoverflow.com/questions/11287484/using-javascr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question