Questions tagged [asp.net-mvc-templates]
Topics related to creating and customizing and styling Asp.net MVC view Engine to represent better user interface and experiment.
asp.net-mvc-templates
21 questions
0
votes
1
answer
27
views
Display template is not picked from Object template
I am trying to create DisplayTemplates -> Object.cshtml template and from it pickup property templates for specified fields. I will provide example to show the problem.
The view model
...
0
votes
1
answer
152
views
MVC 5 template not working with OAuth
When i try to login using fb/g+ in my mvc template app, it logs in successfully, but when i log off and re login, it again takes me to the external callback page instead of logging me into the app. ...
1
vote
0
answers
508
views
Visual Studio 2015 CTP has no MVC option when targeting 4.0
Using VS 2015 CTP, I'm trying to create a web application that targets fx 4.0
There is no MVC 4 Web Application template in the options.
That template does exist in VS 2013 Update 4.
Did I miss ...
0
votes
1
answer
544
views
How to change theme of MVC in visual studio
i am using default template of Asp.net MVC 3 but now want to move to MVC 4, i have completed my project but now exporting it to MVC 4. Actually i want only the template of MVC 4 to be applied to my ...
0
votes
0
answers
359
views
To Set Username and Password on ASP.NET MVC 4 Internet Application Template
I am new at ASP.NET.I am using ASP.NET MVC Internet Application template. It contains AccountModels. I enabled migrations on AccountModels.cs. How should I edit configuration file which is created ...
9
votes
2
answers
22k
views
Formatting currency using display template in MVC
I found this post about Display and EditorTemplates for MVC:
http://www.growingwiththeweb.com/2012/12/aspnet-mvc-display-and-editor-templates.html
It creates a display template to easily display a ...
0
votes
1
answer
218
views
Different templates for different categories/Pages
knows anyone an article I can implement a template-system in my ASP.NET MVC 4 application?
Like many other websites, my own has many different categories and for each should use there own template.
...
4
votes
1
answer
537
views
RenderPartial() in T4 Template
I am wondering if its possible to take an existing partial view's logic and reuse it for dynamic email generation, within a preprocessor template?
When looking through the T4ToolKit's intellisense ...
0
votes
2
answers
939
views
MVC4 Internet Application template bundle enabled by default?
I am using Mvc 4 project from Internet Application template. Why bundle feature does not enabled by default or am I missing something?
There is no such methods like this in Mvc4 as mentioned by other ...
2
votes
5
answers
3k
views
How to produce non-sequential prefix collection indices with MVC HTML Editor templates?
The following code has been stripped down a lot, but basically what I'm looking to achieve is as follows:
I'd like to able to edit Questions and their containing Answer Choices, while being able to ...
2
votes
1
answer
285
views
ASP MVC standard views
ASP MVC scaffolding creates Index, Create, Update, Delete views, but how practical is that in reality. There seems to be a lot of duplication of UI code with the Create, Update and Delete views. Would ...
0
votes
2
answers
304
views
C# F# MVC 3 template deployment
I've recently started to explore Daniel Mohl "F# C# ASP.NET MVC3" template.
Can anyone share on how this type of project should be deployed to IIS7??
Thanks.
7
votes
1
answer
5k
views
Editing and saving complex objects
Say you have the following object:
...
3
votes
1
answer
5k
views
Reach out to ModelMetadata of one of model property
I was reading one of Brad Wilson's articles:
ASP.NET MVC 2 Templates, Part 2: ModelMetadata
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-2-modelmetadata.html
Let's ...
6
votes
1
answer
2k
views
partial view coming without validation attributes (ASP.NET MVC 3)
A weird thing keeps happening on one of my ASP.NET MVC 3 apps.
I am fetching insert rows via jQuery Ajax api and there is no problem with that. But when I get the necessary partial view back, it is ...
45
votes
3
answers
18k
views
MVC template from folder other than default (EditorTemplates/DisplayTemplates)?
Can you point MVC to a folder other than the default ones (Views/Shared/EditorTemplates & Views/Shared/DisplayTemplates)? I'd like to either put them in subfolders below those, or in other ...
10
votes
4
answers
8k
views
Adding HtmlAttributes to template
If I am passing HtmlAttributes into a template, like this:
@Html.DisplayFor(m => m.FirstName, new { htmlAttributes = new { @class = "orangetxt strongtxt" } })
...
23
votes
2
answers
19k
views
ASP.NET MVC 3 Razor Templates VS RenderPartial
I just read this blog post on Razor Templating in ASP.NET MVC 3.
Put simply, i just dont get it!
That is, i don't see why we need this (fairly) complicated code to achieve what can be done IMO ...
1
vote
1
answer
662
views
How do I put a strongly-typed-view WebForms .aspx template in a nonstandard location in ASP.NET MVC2?
So, I personally think this is sort of whack.
I put a .aspx template in a nonstandard location. In this example, it has a virtual path of ...
1
vote
0
answers
634
views
Is there an "extended" UIHint attribute to apply CSS styles for DisplayFor - EditorFor templates?
Intro: After reading Brad Wilson Metadata series and searching unsuccesfully on google, I was wondering:
Question: Has any OS project / code been created that allows you to tag CSS styles in the Meta ...
3
votes
3
answers
786
views
Is there any way to re-use editor & display templates in asp mvc applications?
We're developing 3 asp mvc applications, all will require some of the same shared editor & display template views. Rather than copy/paste these across all 3 projects, is it possible somehow to ...