Is there a way to share an enum between Code behind .Net (VB or C#) and javascript so they both use the same values?
can we register an enum into the clientScript..?
Edit:
The question is:
Is there a way to share a variable that act like an enum in .Net and do the same job in javascript. I could declare both in javascript and .Net but if someone modify the code later and juste change it in 1 place, everything will blow up…
This is why I am looking for somehting “shared”
Thanks
1 Answer