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.

0 votes
0 answers
69 views
51 votes
9 answers
3.1K views
Returning a file to View/Download in ASP.NET MVC

I'm encountering a problem sending files stored in a database back to the user in ASP.NET MVC. What I wan

avatar
Roger
0 1 0 9
asked 07 September, 2021
64 votes
6 answers
337 views
HTML.ActionLink vs Url.Action in ASP.NET Razor

Is there any difference between HTML.ActionLink vs Url.Action or they are just two ways of doing the same thin

avatar
Robt
0 1 0 9
asked 07 September, 2021
62 votes
6 answers
2K views
How can I get the client's IP address in ASP.NET MVC?

I'm totally new to the ASP.NET MVC stack, and I was wondering what happened to the simple Page object and

avatar
Solomon
0 1 0 9
asked 07 September, 2021
70 votes
4 answers
2.7K views
ValidateAntiForgeryToken purpose, explanation and example

Could you explain ValidateAntiForgeryToken purpose and show me example about ValidateAntiForgeryToken in MVC 4

avatar
Tuan
0 1 0 9
asked 07 September, 2021
60 votes
23 answers
2K views
Html.ActionLink as a button or an image, not a link

In the latest (RC1) release of ASP.NET MVC, how do I get Html.ActionLink to render as a button or an image ins

avatar
Frederick
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
2.7K views
Returning binary file from controller in ASP.NET Web API

I'm working on a web service using ASP.NET MVC's new WebAPI that will serve up binary files, mostly

avatar
Vi
0 1 0 9
asked 07 September, 2021
62 votes
18 answers
885 views
Can you overload controller methods in ASP.NET MVC?

I'm curious to see if you can overload controller methods in ASP.NET MVC. Whenever I try, I get the erro

avatar
Forrest
0 1 0 9
asked 07 September, 2021
68 votes
6 answers
1.7K views
ASP.NET MVC View Engine Comparison

I've been searching on SO & Google for a breakdown of the various View Engines available for ASP.NET

avatar
Denese
0 1 0 9
asked 07 September, 2021
51 votes
24 answers
3.1K views
Injecting content into specific sections from a partial view ASP.NET MVC 3 with Razor View Engine

I have this section defined in my _Layout.cshtml @RenderSection("Scripts", false) I can easily use it from

avatar
Wilber
0 1 0 9
asked 07 September, 2021
62 votes
9 answers
961 views
How to add Web API to an existing ASP.NET MVC 4 Web Application project?

I wish to add an ASP.NET Web API to an ASP.NET MVC 4 Web Application project, developed in Visual Studio 2012.

avatar
Eddie
0 1 0 9
asked 07 September, 2021
50 votes
8 answers
2.9K views
Difference between ApiController and Controller in ASP.NET MVC

I've been playing around with ASP.NET MVC 4 beta and I see two types of controllers now: ApiController an

avatar
Nereida
0 1 0 9
asked 07 September, 2021
59 votes
22 answers
2.3K views
OwinStartup not firing

I had the OwinStartup configuration code working perfectly and then it stopped working. Unfortunately I'

avatar
Louetta
0 1 0 9
asked 07 September, 2021
58 votes
10 answers
1K views
How to get current page URL in MVC 3

I am using the Facebook comments plugin on a blog I am building. It has some FBXML tags that are interpreted b

avatar
Shantay
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
2.3K views
How to declare a local variable in Razor?

I am developing a web application in asp.net mvc 3. I am very new to it. In a view using razor, I'd like

avatar
Frederick
0 1 0 9
asked 07 September, 2021
48 votes
8 answers
2.6K views
Styles.Render in MVC4

In a .NET MVC4 project how does @Styles.Render works? I mean, in @Styles.Render("~/Content/css") which file i

avatar
Lynette
0 1 0 9
asked 07 September, 2021
55 votes
10 answers
1.7K views
Which version of MVC am I using?

I can't find it for some reason, feeling a little dumb. How do I know? I'm using .net 4 with VS2010.

avatar
Bryan
0 1 0 9
asked 07 September, 2021
58 votes
10 answers
3K views
ASP.NET Identity - HttpContext has no extension method for GetOwinContext

I have downloaded, and successfully ran the ASP.NET Identity sample from here: https://github.com/rustd/Aspnet

avatar
Corey
0 1 0 9
asked 07 September, 2021
60 votes
5 answers
561 views
Why is JsonRequestBehavior needed?

Why is Json Request Behavior needed? If I want to restrict the HttpGet requests to my action I can decorate t

avatar
Sena
0 1 0 9
asked 07 September, 2021
61 votes
19 answers
947 views
How can I properly handle 404 in ASP.NET MVC?

I am using RC2 Using URL Routing: routes.MapRoute( "Error", "{*url}", new { controller = "Err

avatar
Dorian
0 1 0 9
asked 07 September, 2021