Link to home
Start Free TrialLog in
Avatar of trgb
trgbFlag for United States of America

asked on

Razor, WCF, and ASP

I understand that in an MVC app I would access the WCF  and then pass the object to a view and use razor to display it. But I'm writing a web pages app and I'd like to use Razor and WCF.
I'm trying to figure out where to put the code to define the objects from the WCF and use the it to fill them before I use razor to display them.
Two questions; Am I crazy to try to use razor in a non MVC app? If I'm not crazy, how do I do it?
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Razor is a view engine just like webforms. So the two are alternative of each other hence razor is not supported within webforms

http://stackoverflow.com/questions/5264852/can-we-use-razor-syntax-in-asp-net-webforms-aspx-pages
ASKER CERTIFIED SOLUTION
Avatar of trgb
trgb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of trgb

ASKER

Tested this out and it worked fine.