asp.net mvc - How do I display a Web Forms page from an MVC 2 application? -
The report viewer controls apparently only work in a web form page (I'm using MVC 2). So, let me create one, add my report to it, and try linking it to a view in my MVC 2 site. I get a constant error "Can not find the resource" I have tried every possible url, I can think it's got to work for it. I also pulled out and removed a hyperlink tool in the page and set it to link to the web form and got the same results.
I have tried a URL such as ~ / views / maintenanceReports / DriverList.aspx (without * .aspx) and some other but, I have tried the URL in the web form / view / maintenance ranks folder. Make sure this URL should be.
I have also added this page to the Global.assx file, so it is expected that this is some magical I also tried to add to my fellow programmer, an MVC view, according to the suggestion of an iframe, which was the source of the web form in question. It gave me the same error. I have got the ASP.NET MVC 2 hands and it does not give me anything which helps. It basically says that there should be no problem. The server runs IIS 7 and has the .NET 4 framework installed. Normally I want to spend more time answering, but I have pressed for a long time, this is my last day (internship) and I do this last work before going. Thank you for all your help. Try using Update It seems that the above code does not work for routing within the routes. MapPageRoute ("DriverListing", "Maintenance Ripit / Driver Lossing", "~ / View / Maintenance Reports / Drivers Listings.aspx");
StopRoutingHandler . I think the MVC needs to ignore these issues to url those URLs.
route. Add (new route ("Maintenance Replace / {* Resource}", New Stopper Handling Handler ()));
view folder. The simple solution is to move
webform out of the
view folder, and work with the box with
WebForms MVC.
Comments
Post a Comment