Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have an application in MVC 3 which needs to have a Web form page.
The controller can return the ASPX page but the code behind file is giving errors on INHERITS property when loaded.
Please help!!

Regards
Posted
Comments
Badal Kumar 20-Jun-12 6:04am    
Unable to track button click event in this scenario.

I guess you will have to post the complete error for someone to help. Are you sure you have the references required to run a web forms page in your MVC web application? Use this link from Scott Hanselman as a starting point - http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx[^]
 
Share this answer
 
Hi,

I think you must be sure that you inherits the right model on your .aspx ViewPage code, or maybe your target model is not existing...

Example:
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcNW.Models.ProductCategory>>" %>


The above example MvcNW.Models.ProductCategory must be existing...

Please do not forget to vote if could help...
 
Share this answer
 
v2
Comments
Karthik. A 21-Feb-12 23:37pm    
I guess the question is about a web forms page and not a mvc page. User is able to redirect to the web form page, but there are errors.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900