Tag: asp.net-mvc-3

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
331 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
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
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
60 votes
5 answers
555 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
52 votes
7 answers
882 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
63 votes
23 answers
913 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