Wednesday, May 16, 2012

Adding Custom WebForms to ASP.NET MVC4 Mobile Framework

ASP.NET MVC 4 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of ASP.NET and the .NET Framework. 


Usually there shouldn't be a problem adding a our own Custom Web Forms page to an MVC project. You should start by adding a new Web Form from the "Add New Item..." menu in the solution explorer.
Make sure you don't add it inside a View Folder.
If this Web Forms page doesn't work, you could start by checking your routing setup in Global.asax.cs.
Make sure that routes.RouteExistingFiles isn't set to true.

And for Button Event Handlers add the EventHandler method in the Page_Load().
DisplayDoctorsVisit.Click += new EventHandler(this.cmdbutton_Click);

Thanks
Meera

No comments:

Post a Comment