user999690
user999690

Reputation: 267

mvc - allow asp tags in chtml pages

Is there anyway to allow asp tags in chtml MVC pages? Do I have to declare something in the view itself? I know its possible to have an aspx page in the solution, but I would like to combine controls in the chtml page.

Example:

@using (Html.BeginForm())
{
<asp:calander>...

etc

Upvotes: 0

Views: 133

Answers (1)

HatSoft
HatSoft

Reputation: 11201

Actually Razor does not support WebForm controls, but you need to see Scott Hanselman's example if you really want to mix n match

http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx

Upvotes: 3

Related Questions