asp.net mvc - Convert WebForm VB Web Application to MVC C# gradually -
We currently have a vb web form application and we want to migrate it to C # MVC in a complete rewrite Instead we want to move one project at a time.
I know that there is a hybrid project with webform and MVC which is described below:
But the problem I have is that the web application The vb / asp.net web form exists in the external page and when a user clicks on an area, a button that is rewritten in C # / Razor MVC. I
Do I have a webform Can I provide a view of the razor inside?
If I can not send to a new tab?
>Any ideas how to do that?
Thanks
I currently work on the same hybrid project where I have The webform part and the MVC part.
We strive to get rid of the webfamous part.
The strategy I have come up with is:
- Get all the arguments on the BL layer from the webform in your solution
- All model dialogs Change the MVC + RAZER partial Vi EWS It's really easy to do via AJAX in your webform clickable element:
Then you can get in the webform section in your razor view. If you want a new tab, you can also use js: OnClientClick = '& lt;% #' showEntityList ("+ + Eval (" ID " ) + "); Return back; "JAS code that calls AJAX (I use jquery dialogs behind this function):
function show antityi (id) {dialogSaveCancel ({title:" entity list ", UrlPost: '/ controller name / controllermathname? Id =' + id, callback: {success} function (data, textstats, jxaxhr) {var url = 'test'; window.location.replace (url);}, error: work () {}}};};
function ShowNet tab (path) {window.open (SiteAppRootPath + path, '_blank');}
Comments
Post a Comment