I have big problems with the integration of Wisej-Pages into an existing ASP.NET MVC WebApplication.
Unfortunately the topic “ASPNET-MVC Integration” in the documentation is still empty and i hadn’t found any exmaples which demonstrate the implementation/integration into an ASP.NET WebApp. Is this even possible with the Beta-Release?
Could you give me some advice how to handle my proposal or when there will be some additional information about this?
By the way: I have some problems with VS2015 and the Wisej-Extension on my Surface Book. The scrollbar of the toolbox (and some others) are sometimes sticking and controls are cutted off by the borders of the Wisej-Designer. For me it seems more like a problem with the Surface than with Wisej.
Best regards
Corvin
I can display Wisej pages as iframes or opened windows in an existing asp.Net MVC application by adding
routes.IgnoreRoute(“{resource}.html/{*pathInfo}”);
routes.IgnoreRoute(“{resource}.wx/{*pathInfo}”);
routes.IgnoreRoute(“{resource}.json”);
to RouteConfig.RegisterRoutes method.
Beware of security, Authentication has to be checked with Application.IsAuthenticated property.
Hope that helps,
Pierre
Hi Corvin,
I agree with you. I wrote the same about ASP.NET and postbacks. I don’t know why the url doesn’t work, an iframe is able to show any content from any url. It depends on the the URL you set. Once loaded it can perform ajax callbacks seamlessly.
I received your direct email, let’s continue the interaction directly and update this thread once we have a solution.
Best,
Luca
Hi Luca,
i’ve tried to include an ASP.NET MVC Page(View) with the aspNetPanel-Control in Wisej but it also doesn’t work. I’ve set the PageSource to a sample View “sampleView.cshtml”. When it only contains simple HTML it’s working, but I’m not able to use some RazorSyntax and HtmlHelpers. I tried to modifiy the web.config but it still doesn’t work.
As I see the Wisej-aspNetPanel is nothing more than an HTML-iFrame and teh PageSource should point to an .aspx.Page or ? .
I haven’t tried with Wisej but I know in HTML, pointing to an ASP.NET WebForms Page (.aspx) works like this
<iframe src="samplePage.aspx"></iframe>
In raw Html pointing to a ASP.NET MVC View (.cshtml) won’t work because the src must point to the Action of the Controller which returns the View which will look something like this.
<iframe src ='controller/sampleAction'></iframe>
I can’t completely agree with the Issues you told above.
In ASP.NET WebForms, there is a terrible amount of Postbacks so Wisej may doesn’t make much sense. But aren’t the postbacks the reason why ASP.NET WebForms are more and more outdated and the Deveplopers tend to use ASP.NET MVC ?
In ASP.NET MVC we don’t have these kind of postbacks. Most of the time when there is any kind of interaction I’m replacing containers of my HTML-Page with the content of dynamically created Views which I get via selfcoded Ajax-calls or via integrated ajax-calls of the HtmlHelpers. Every Ajax-Call points to an Action of one of the Controllers.
Examples:
The Application is having a header which never changes, then we have some Pages with different Navbars. Now, when a User klicks onto an Item in the Navbar i Replace the “Content-Div” with a dynamically created View.
Often these Views are containing “Kendo UI for MVC”-Controls like Grids. When the User clicks onto the Filter-Button, the Grid is making an Ajax-Call to one of my Controller-Actions and this returns the filtered data.
It would be really nice if we could replace the above mentioned content-div with Wisej-Controls, or with some Kind of Wisej-Container which could contain all kinds of Wisej-Controls. So we could keep the implemented layouts and structures but extend the Application with Wisej and all it’s benefits.
I/We would be glad to support you with some sample Apps and Use Cases in the near time.
Best regards
Corvin
Hi Luca,
first of all – Wow, that’s the quickest support I ever got !
I’m not using any WebForms or aspx-pages but I think basically it should show me how to handle the proposal so let’s give it a try.
Thank you very much
Corvin
hehe, you got me online right at the time.
We have and AspNetPanel control in Wisej, but that’s for including an ASP.NET/MVC page as a child panel in a Wisej container.
The WisejPanel ASP.NET/MCV control is not developed yet and we still need to identify use cases. If you could give me either a small sample app with a placeholder for where you’d like to use a Wisej component it would help. Or a description of the ASP.NET/MVC page that needs to use a Wisej component, what kind of component and how you’d like to use it would also help.
These are the issues/problems:
Additionally, Wisej also exposes a full javascript object model in the window.App namespace reflecting all the visual objects in the wisej application. So the ASP.NET page could access the components from the client.
Anyway, more info would help us.
Best,
Luca
Hi Corvin,
A Wisej page would take over the browser. Would an ASP.NET example with an aspx page containing a button that shows a Wisej form and when the form is closed updates the ASP.NET page work for you?
Best,
Luca