Combine ASP.NET WebForms with DotVVM in single project [closed] - c#

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
currently I have the web application using Web.Forms. It consist of more than thousand pages and rewriting everything from scratch will be extremely time consuming.
I'm planning to gradually rewrite each page while the others remains as webforms.
Is that even possible? Having mix of DotVVM and Web.Forms pages within single project?
What would you suggest to start with? Ideally I'd like users not to even know that the page looks different. I don't care about URLs as it's admin application.
From what I learned so far I need to duplicate my current MasterPage to the .dotmaster page and then add views for pages I am rewriting.
Thanks for suggestions.

I have created a sample app which shows how to combine ASP.NET Web Forms and DotVVM in one project.
Basically you need to install DotVVM.Owin and Microsoft.Owin.Host.SystemWeb packages in the project, add the OWIN Startup class where you register DotVVM middleware, and add the project type GUID in the .csproj file to make the Visual Studio extension for DotVVM work.

Related

Should I use different services for a different area in ASP.NET core? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 months ago.
Improve this question
So, I am using a classic MVC architecture with a service layer for my ASP.NET core app.
I added an Admin area and in it I added Controllers, Models and Views folders, so I can easily separate the admin-related stuff from the general user-related stuff. Now I have two options:
Creating a Services folder in my Admin area and literaly copy-pasting the already created services, but from my general Services folder
Directly using the already created services from the general Services folder
I am not sure which approach is generally accepted as better, so I hope for some guidance.
If you can use it as is, then the general Service folder is enough, but if you need to change/add many things than it is a good idea to create a separate service. (You can still use the general Service as a dependency in your admin service)

How to call views in other solutions [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
new job, new giant website made of multiple solutions, I have to develop a new page:
I'm in solution A, I want to load a view in solution B... How does this work, its my first experience with multiple solutions websites.
both solutions are in asp.net c# mvc
Presumably you are working within an existing codebase with plenty of examples? This question is fairly vague, but my assumption would be that your views are being routed by a controller which determines the URL of the page. I can't tell based on your tags though.
If this is the case, then it doesn't matter how many projects are running as long as you hit that URL. The controller acts as an API and will handle the request as long as that project is running. At my job we run a composite application using ASP.NET Core with a dedicated "content discovery" project which acts as a middleware API for handling all route requests from all (and we have a lot) of our various projects that are working together but it doesn't need to be that complicated.

separate files for constant values in asp.net mvc appliaction [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I'm planning to design an asp.net MVC web application which keeps its constant values such as Page Titles, Label Values, Tooltips, Page Headers, Menu titles and etc. in a separate common location.
when I do this research one way to this achieve this expectation, is using resource files (.resx)
So I found this article Create Multi-Language WebSite in Asp.Net MVC – Localization
I did hands-on project, which retrieves label names from layout files and HTML pages and its working properly.
But it seems, usage of resource files (.resx) is to achieve Localization
So I have following ambiguities
If this is not the best way, what are the other alternatives
If this is a good approach, will it affect application performance(like lagging the website than accessing directly from HTML pages)
I don't often use .resx for resources, but that's just personal preference.
They work fine and I have never run into performance issues with them.
For localization and similar string resources, I usually create a JSON file and make it an embedded resource instead. The benefit to this is that it's easier to work with outside of Visual Studio and .NET.
That's just an alternative though. Either practice is fine.

Modular .NET Core Web Application with AngularJS and WebAPI [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to working on the Single Page Application Based on .Net Core 2.0 with AngularJS for front-end. We have request that the application must be modular, which means that we must separate Back-end and front-end for each modules. We have been trying to find best approach for the project.
We try to use ASP.NET Boilerplate - Application Framework for this approach but i don't know how to support static files such as html and JavaScript files for angular per modules and We cannot configured Main Web-app to lookup static files in different location (modules must separate with project files).
I cannot find examples for this case (Modular App Based on .NET core and WebAPI and AngularJS,Typescript ...). Do anybody have suggestion how can we solve this problem, or do you suggest another approach or framework or sample code.
Note: The main problem is add routing With angularJS in Modules when modules are load in Main application start up Event.

Change ASP.NET MVC default looking [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am follow this article and ASP.NET learning site in order to build simple web site. i have database with an objects, each object represent file on dist and several properties (size, name etc...) and i have a question:
After add the controller like in this article (min 1:45) and run my application it navigate into my files page:
And to my file details:
How hard is (i am not new developer but totally new in websites) to change this 2 pages (default looking) to something else / other design ? (i follow ASP.NET learning site guides but sometimes is hard to implement it alone i i want something else)
BTW, i will glad for some screenshots\examples\tutorials for new look
Within the project there is a Content folder, you will find you CSS and image files etc. in here. Your Views folder contains the html and razor view engine. If you are not aware of how to change the structure and look of a website I recommend you start the tutorials here
http://www.w3schools.com/
And for further asp.net mvc help here
http://www.asp.net/mvc
If you are using visual studio, you might try the asp.net mvc template to start a new website project, it has initial design which might be good foundation to start and afterwards you need to change css files to get what you need.

Categories