About 11,400,000 results
Open links in new tab
  1. How to change session timeout in ASP.NET - Stack Overflow

    189 I am running an ASP.NET 2.0 application in IIS 6.0. I want session timeout to be 60 minutes rather than the default 20 minutes. I have done the following Set <sessionState …

  2. Difference between ApiController and Controller in ASP.NET MVC

    Feb 29, 2012 · I've been playing around with ASP.NET MVC 4 beta and I see two types of controllers now: ApiController and Controller. I'm little confused at what situations I can choose …

  3. How to correctly use the ASP.NET FileUpload control

    I'm trying to use the FileUpload control in ASP.NET Here's my current namespace setup: using System; using System.IO; using System.Collections.Generic; using System.Linq; using …

  4. 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

  5. What is the purpose of global.asax in asp.net - Stack Overflow

    Feb 26, 2010 · ASP.Net framework uses the content in the global.asax and creates a class at runtime which is inherited from HttpApplication. During the lifetime of an application, ASP.NET …

  6. c# - AddTransient, AddScoped and AddSingleton Services …

    Jul 1, 2016 · I want to implement dependency injection (DI) in ASP.NET Core. So after adding this code to ConfigureServices method, both ways work. What is the difference between the …

  7. c# - Setting connection string with username and password in …

    I am working on my first ASP.NET Core MVC application.What is the right way to specify the connection string in a ASP.NET Core MVC application with a sql server backend requiring sql …

  8. How to return HTTP 500 from ASP.NET Core RC2 Web Api?

    Jun 13, 2016 · The built-in Problem ()-method of Microsoft.AspNetCore.Mvc will return a "problem detail"-response based on RFC 7807 (in ASP.NET Core 3.0 and later). It will always return …

  9. asp.net core mvc - Failed to determine the https port for redirect ...

    Mar 13, 2023 · The ASP.NET Core web templates set an HTTPS URL in Properties/launchsettings.json for both Kestrel and IIS Express. launchsettings.json is only …

  10. How do I convert legacy ASP applications to ASP.NET?

    Sep 21, 2008 · Instead, start working on new functionality in ASP.NET: this way, you won't be held back by legacy concepts, and can use the new coolness afforded by the Framework …