Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

asp.net-mvc

Can I set an unlimited length for maxJsonLength in web.config?

September 3, 2022 by Magenaut

I am using the autocomplete feature of jQuery. When I try to retrieve the list of more then 17000 records (each won’t have more than 10 char length), it’s exceeding the length and throws the error:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, json Leave a comment

Is it possible to use Razor View Engine outside asp.net

September 3, 2022 by Magenaut

If I look at the Razor View Engine, then I see a very nice and concise syntax that is not particularly tied to generating html. So I wonder, how easy would it be to use the engine outside asp.net in a “normal” .net environment for example to generate text, code,…

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, code-generation, razor, templating Leave a comment

Is Task.Run considered bad practice in an ASP .NET MVC Web Application?

September 3, 2022 by Magenaut

Is there any performance benefit in using Task.Run in an async Web API Controller for cpu-bound operations?

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, async-await, c#, task-parallel-library Leave a comment

How to “warm-up” Entity Framework? When does it get “cold”?

September 3, 2022 by Magenaut

No, the answer to my second question is not the winter.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-4, entity-framework, entity-framework-5 Leave a comment

ASP.NET MVC – Getting QueryString values

September 3, 2022 by Magenaut

Under ASP.NET MVC are you supposed to pick up QueryString params the same way you do in ASP.NET WebForms? or does the [AcceptVerbs(HttpVerbs.Get)] declaration get used somehow?

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-mvc Leave a comment

Could not find a part of the path … binroslyncsc.exe

September 3, 2022 by Magenaut

I am trying to run Asp.net MVC project retrieved from TFS source control. I have added all assembly references and I am able to build and compile successfully without any error or warning.

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-mvc, c#, roslyn Leave a comment

How to render a DateTime in a specific format in ASP.NET MVC 3?

September 3, 2022 by Magenaut

If I have in my model class a property of type DateTime how can I render it in a specific format – for example in the format which ToLongDateString() returns?

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-3 Leave a comment

Can the ViewBag name be the same as the Model property name in a DropDownList?

September 3, 2022 by Magenaut

I am working on an ASP.NET MVC-4 web application. I’m defining the following inside my action method to build a SelectList:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-4, html-helper, html.dropdownlistfor Leave a comment

How to return a file (FileContentResult) in ASP.NET WebAPI

September 3, 2022 by Magenaut

In a regular MVC controller, we can output pdf with a FileContentResult.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-web-api, c# Leave a comment

Difference between MVC 5 Project and Web Api Project

September 3, 2022 by Magenaut

I am new to ASP.NET MVC and Web API and trying to get the basics. AFAIK, we have project templates in VS 2013, named as MVC, Web API and Both of them together.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-web-api, c# Leave a comment
Older posts
Newer posts
← Previous Page1 … Page23 Page24 Page25 … Page131 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress