Skip to content

Magenaut

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

asp.net-mvc

How to enable MVC in a WebForms project?

August 26, 2022 by Magenaut

I have an existing webforms project. I’ve added MVC5 from Nuget, and added the following:

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

How do you cancel an AJAX long running MVC action client side (in javascript)?

August 26, 2022 by Magenaut

I have a long running (4-10 second) MVC action that runs a report from an AJAX call. While it’s running users can change the parameters and run something else, so I cancel the AJAX request before making another one.

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

MVC JSON actions returning bool

August 26, 2022 by Magenaut

I had my ASP.NET MVC actions written like this:

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

Identity email with dash in Asp.Net Identity

August 26, 2022 by Magenaut

I am using ASP.NET MVC identity and when I add an email of the form [email protected] I get the validation error message

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

How do I get an instance of IAppBuilder elsewhere in my ASP.NET MVC 5.2.3 application?

August 26, 2022 by Magenaut

I need to build an Owin middle-ware object but not from within the Startup class. I need to build it from within anywhere else in my code, so I need a reference to the AppBuilder instance of the application. Is there a way to get that from anywhere else?

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

Precompile asp.net views with ms build

August 26, 2022 by Magenaut

When I deploy asp.net application through visual studio I know I can just check Precompile during publish and uncheck Allow precompiled site to be updateable.

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

Changing the default value of session’s variable timeout in asp.net mvc

August 26, 2022 by Magenaut

I have an Asp.net Mvc application with razor views engine , in which i used a variable Session['user'] : when an user log on the application Session['user'] = login and in the logout this variable takes as value Null.

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

FormsAuthentication Roles without Membership

August 26, 2022 by Magenaut

I’m trying to use FormsAuthentication and it’s working fine at the moment with user name and password. I need to add User Role to the Forms authentication Ticket and i’m not using ASP.NET Membership.

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

Client-side custom data annotation validation

August 26, 2022 by Magenaut

I’ve create a custom data annotation to do some validation on my view model. The problem is that it doesn’t validate on the client-side. Here’s my model:

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

How to add custom error message with “required” htmlattribute to mvc 5 razor view text input editor

August 26, 2022 by Magenaut

I am naive to Asp.Net MVC.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, razor Leave a comment
Older posts
Newer posts
← Previous Page1 … Page99 Page100 Page101 … 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