This likely applies to non MVC too. But, Is it possible to use the 'using' statement in my aspx views?
Reason is that I have the pages reference resource files for localised strings. And some of these resource references are quite long - it's really cluttering my code.
Since most of the time these resources are in a namespace specifially for the view, I'd just like to put a 'using Resources.This.that' at the top of the page. I don't seem to be able to though - is there a way?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…