tags:

views:

42

answers:

2

Hello, can anybody tell me that if i made a normal asp.net c# project and in that solution i want to add mvc project. so is it possible to call mvc view from normal page which is in first project? if yes then how can i call view page from normal page of asp.net c# project. on live server how can i call mvc page? Thanks Samir

A: 

http://stackoverflow.com/questions/419961/mixing-vb-asp-net-and-c-asp-mvc-projects-in-a-single-solution

mmcteam.com.ua
this is not the proper solution. can you give me an example.
Samir
what example do you want? Link above is just simple pager - and you can use it to build your own grid.
mmcteam.com.ua
A: 

Ok, couple of different things here.

Can a ASP.NET forms project exist in the same solution? Yes

Can you mix MVC with WebForms in the same project? No

Can a MVC site communicate with a WebForms site? Yes, you can easily pass between via simulated form submission or by URL. You could also configure cookies to work across both sites.

Can you have an MVC site and a WebForms site use the same url? No

Serapth
By winforms I guess you mean webforms? If that is the case then you can mix them in the same project.
Mattias Jakobsson
Ugh, bad typo, no coffee yet this morning and it shows.
Serapth
Then you can use them in the same project without problems.
Mattias Jakobsson
can anybody give me an example so i can better understand.
Samir
@Samir, What is it that you want to know?
Mattias Jakobsson
@Samir, Here is a article that describes how you can use asp.net mvc and asp.net webforms in the same project: http://weblogs.asp.net/rajbk/archive/2010/05/11/running-asp-net-webforms-and-asp-net-mvc-side-by-side.aspx
Mattias Jakobsson