?
Solved

Razor, WCF,  and ASP

Posted on 2013-01-29
3
Medium Priority
?
894 Views
Last Modified: 2013-02-09
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?
0
Comment
Question by:trgb
  • 2
3 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38832897
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
0
 
LVL 1

Accepted Solution

by:
trgb earned 0 total points
ID: 38851441
Razor is supported in a non MVC app. Any file with either a vbhtml or cshtml extension will be rendered using the Razor engine. But I don't think it's a great idea to mix aspx and vbhtml in the same project.
0
 
LVL 1

Author Closing Comment

by:trgb
ID: 38870798
Tested this out and it worked fine.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question