ASP.Net MVC View in WebForms Application

I am adding functionality to the ASP.NET web form application, and we decided that the new development would be done by MVC, in order to eventually move all the functionality.

Obviously, MVC and WebForms play pretty well together when it comes to getting an MVC action through a URL. However, I would like to display the MVC view in the existing taber (telerik) control on the WebForm page. This view will use the js / css file, which will also need to be considered.

+3
source share
1 answer

Well, I would use jquery / js to dynamically load a tab on the page load / select tab. If you add the js function to the required handler, you can run ajaxGet to extract the html from your MVC action url.

If necessary, I can get a sample code. Are you using jQuery in your ASP.Net or MSAJAX application ??

Cheers Ian

0
source

Source: https://habr.com/ru/post/1705901/


All Articles