title: How to make a variable in the razor view global?
body: <p>I want to know how to make a variable that I declare in a razor view global so that I can access it in another view? I performed an ajax function that fetches the location of a td element in its parent table. I then stored the index in an int variable. Now I want to access that variable from another view/controller to complete an if-else statement. How do I do this?</p>