
How to limit the number of characters allowed in a textbox?
It seems to be a curious oversight in the design of ASP.NET (leaving aside the anomaly with textareas) that you can set the MaxLength property of a textbox but there seems to be no way …
How do I implement a checkbox list in ASP.NET Core?
I am looking to implement a checkboxlist in ASP.NET Core, but am facing some difficulties. My ViewModel: public class GroupIndexViewModel { public Filter[] Filters { get; set; } } public c...
How to read AppSettings values from a .json file in ASP.NET Core
I have set up my AppSettings data in file appsettings/Config .json like this: { "AppSettings": { "token": "1234" } } I have searched online on how to read AppSettings values from .json
ASP.NET Core This localhost page can’t be found
ASP.NET Core This localhost page can’t be found Asked 8 years, 7 months ago Modified 1 year, 3 months ago Viewed 250k times
How can I get the baseurl of my site in ASP.NET Core?
@SruthiVarghese I don't think you can resolve host url from startup. My understanding is .NET Core are all console app, your startup decides how it's hosted. So the same exact code can …
How to change session timeout in ASP.NET - Stack Overflow
ASP.NET framework inserts a unique id to the URL, you can check this by disabling the cookie or by setting the cookieless attribute to true as you did. According to MSDN, By default, the …
How to read request body in an asp.net core webapi controller?
In ASP.Net Core it seems complicated to read several times the body request, however, if your first attempt does it the right way, you should be fine for the next attempts.
c# - Custom Authentication in ASP.Net-Core - Stack Overflow
From what I learned after several days of research, Here is the Guide for ASP .Net Core MVC 2.x Custom User Authentication In Startup.cs : Add below lines to ConfigureServices method :
How to correctly use the ASP.NET FileUpload control
60 ASP.NET controls should rather be placed in aspx markup file. That is the preferred way of working with them. So add FileUpload control to your page. Make sure it has all required …
c# - Resolving instances with ASP.NET Core DI from within ...
Resolving instances with ASP.NET Core DI from within ConfigureServices Asked 10 years, 3 months ago Modified 1 year, 3 months ago Viewed 635k times