Tag: asp.net-mvc

56 votes
30 answers
448 views
How do you handle multiple submit buttons in ASP.NET MVC Framework?

Is there some easy way to handle multiple submit buttons from the same form? For example: <% Html.BeginFor

avatar
Freida
0 1 0 9
asked 07 September, 2021
63 votes
23 answers
916 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
57 votes
6 answers
2.2K views
The default XML namespace of the project must be the MSBuild XML namespace

I cloned the ASP.NET Core SignalR Repo locally, and try opening the solution from within the following environ

avatar
Dwain
0 1 0 9
asked 07 September, 2021
61 votes
10 answers
2.4K views
Using &apos;UseMvc&apos; to configure MVC is not supported while using Endpoint Routing

I had an Asp.Net core 2.2 project. Recently, I changed the version from .net core 2.2 to .net core 3.0 Previ

avatar
Don
0 1 0 9
asked 07 September, 2021
64 votes
11 answers
1.6K views
ASP.NET MVC controller actions that return JSON or partial html

I am trying to create controller actions which will return either JSON or partial html depending upon a parame

avatar
Brianne
0 1 0 9
asked 07 September, 2021
51 votes
6 answers
1.4K views
In MVC, how do I return a string result?

In my AJAX call, I want to return a string value back to the calling page. Should I use ActionResult or just

avatar
Trudy
0 1 0 9
asked 07 September, 2021