Reuse Asp MVC view in multiple applications [closed] - c#

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 6 years ago.
Improve this question
I want to reuse partial view in multiple ASP MVC applications. Is it possible to do that?
I have some partialview.cshtml which uses MyViewViewModel.cs and lots of typescripts/javascripts.
Is it possible to reuse all this code in different application?
If so, how I use views from external assembly?

look at razor generator: https://github.com/RazorGenerator/RazorGenerator
and look for samples in the internet

Related

send files in a real time Asp.net application [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 6 years ago.
Improve this question
so i'm working on a chat application with signalR. And i want to know if there is a way to send attachement and files ?
I know we can't do that using SignalR but is there another way ?
One way would be to use normal Http transfer, and manage the download/upload linking using SignalR,
check out this link:
https://github.com/garethrbrown/aspnet-signalr-upload-progress-bar

Implementation of pay-wall in .net MVC 4 application [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 8 years ago.
Improve this question
I am trying to implement pay-wall mechanism in my MVC 4 application.
The requirement is to restrict access to some pages of a PDF file in preview mode and allow the complete file to display after pay-wall subscription.
i searched some links but they are providing only theoretical information about pay-wall.
Please suggest some link or examples for implementing it.
Any kind of help will be appreciated.
Thanks in advance.

how to create a new method based on editorformodel html helper [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 8 years ago.
Improve this question
I'm new in MVC and I need to modify EditorForModel for using permissions (show/Not show, disabled/Enable, etc) in the fields from my DB, according with kind of user. Can anybody help me ?
You can create custom editors for your models by adding a EditorTemplates folder in your Views/Shared folder. More info about this process can be found here – http://blogs.msdn.com/b/nunos/archive/2010/02/08/quick-tips-about-asp-net-mvc-editor-templates.aspx

working with test data in winforms [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 8 years ago.
Improve this question
I'm learning winforms and I'm wonder is it possible to work with some test data like in unit tests that on every startup of aplication dummy data load and work with them for simple crud operations?
Thanks
Use NBuilder. But you will have to create a separate test data layer. I have been using this for quite a while now. Really good for mockup/dummy screens where some random data is required.

A list of active views in prism [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 8 years ago.
Improve this question
Doez prism assign any unique identifier/guid maintained for each view ?
Perhaps in tracking any references etc?
Prism doesn't do it. But you can do it easily if needed. However, I learned that you don't need to do this if you properly use navigation and navigation parameters.

Categories

Resources