Other

This tag is for questions on multiple areas that are not listed. Questions asking us to recommend or find an editor are completely off topic.

52 votes
7 answers
887 views
Writing/outputting HTML strings unescaped

I've got safe/sanitized HTML saved in a DB table. How can I have this HTML content written out in a Razo

avatar
Luis
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
3.1K views
What is ViewModel in MVC?

I am new to ASP.NET MVC. I have a problem with understanding the purpose of a ViewModel. What is a ViewModel

avatar
Xavier
0 1 0 9
asked 07 September, 2021
54 votes
19 answers
2K views
Can an ASP.NET MVC controller return an Image?

Can I create a Controller that simply returns an image asset? I would like to route this logic through a cont

avatar
Basil
0 1 0 9
asked 07 September, 2021
61 votes
18 answers
2.8K views
How to get all Errors from ASP.Net MVC modelState?

I want to get all the error messages out of the modelState without knowing the key values. Looping through to

avatar
Dusty
0 1 0 9
asked 07 September, 2021
52 votes
15 answers
2.1K views
How to render an ASP.NET MVC view as a string?

I want to output two different views (one as a string that will be sent as an email), and the other the page d

avatar
Keith
0 1 0 9
asked 07 September, 2021
63 votes
4 answers
2.9K views
What is the difference between 'classic' and 'integrated' pipeline mode in IIS7?

I was deploying an ASP.NET MVC application last night, and found out that it is less work to deploy with IIS7

avatar
Trudy
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
2.3K views
ReSharper "Cannot resolve symbol" even when project builds

My Tools: Visual Studio 2012 Ultimate + Update 1 ReSharper v7.1.25.234 My Solution Build Status: Build Succ

avatar
User demo
0 1 0 9
asked 07 September, 2021
68 votes
30 answers
1.5K views
Visual Studio debugging/loading very slow

I'm at wit's end. Visual Studio is typically painfully slow to debug or just plain load ("start with

avatar
Eddie
0 1 0 9
asked 07 September, 2021
59 votes
19 answers
491 views
How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error:

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
54 votes
8 answers
2K views
Compile Views in ASP.NET MVC

I want an msbuild task to compile the views so I can see if there are compile time errors at well... compile t

avatar
Patsy
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
1.4K views
How to get ELMAH to work with ASP.NET MVC [HandleError] attribute?

I am trying to use ELMAH to log errors in my ASP.NET MVC application, however when I use the [HandleError] att

avatar
Chaya
0 1 0 9
asked 07 September, 2021
62 votes
15 answers
554 views
RedirectToAction with parameter

I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int. Later on I need

avatar
Xavier
0 1 0 9
asked 07 September, 2021
49 votes
9 answers
589 views
ASP.NET MVC - Set custom IIdentity or IPrincipal

I need to do something fairly simple: in my ASP.NET MVC application, I want to set a custom IIdentity / IPrinc

avatar
Frederick
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
2.1K views
Can I set an unlimited length for maxJsonLength in web.config?

I am using the autocomplete feature of jQuery. When I try to retrieve the list of more then 17000 records (eac

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
558 views
How do you create a dropdownlist from an enum in ASP.NET MVC?

I'm trying to use the Html.DropDownList extension method but can't figure out how to use it with an

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
63 votes
23 answers
917 views
File Upload ASP.NET MVC 3.0

(Preface: this question is about ASP.NET MVC 3.0 which was released in 2011, it is not about ASP.NET Core 3.0

avatar
Serina
0 1 0 9
asked 07 September, 2021
63 votes
13 answers
1.9K views
Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction

In ASP.NET MVC, what is the difference between: Html.Partial and Html.RenderPartial Html.Action and Html.Rend

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
3.1K views
Could not find a part of the path ... bin oslyncsc.exe

I am trying to run Asp.net MVC project retrieved from TFS source control. I have added all assembly reference

avatar
Joseph
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
1.9K views
A potentially dangerous Request.Form value was detected from the client

Every time a user posts something containing < or > in a page in my web application, I get this exceptio

avatar
Patsy
0 1 0 9
asked 07 September, 2021
46 votes
14 answers
858 views
How to set ASPNETCORE_ENVIRONMENT to be considered for publishing an ASP.NET Core application

When I publish my ASP.NET Core web application to my local file system, it always takes the production-config

avatar
Rufus
0 1 0 9
asked 07 September, 2021