About 90,400 results
Open links in new tab
  1. Using HttpClient As It Was Intended (Because You’re Not)

    Jul 1, 2017 · In this case, it can become unmanageable to create separate client instances for all of the HTTP calls you make. You can still gain all the advantages of a single client instance by varying your …

  2. Detect browser closing through clicks on the [X] button

    Jun 23, 2005 · Global.Asax works only when you tell the application to end or when the session expires … Believe me.. I tried a lot of things… Well I guess I have found a solution to this problem… I took a …

  3. How to Enable Cross Origin Request in ASP.NET Web API

    Aug 18, 2016 · We have added Application_BeginRequest method in Global.asax class. Generally, this method checks Header's all keys. If it contains with " Origin " and Request HttpMethod is " OPTIONS …

  4. ASP.NET Web Services Dependency Injection using Unity

    Jan 5, 2012 · Step 1: Setting Up the Container in Global.asax The first step is to setup Unity Container in Global.asax file. This is a good place to do it because it can be accessed either by web pages or by …

  5. IP address blocking in ASP.NET - CodeProject

    Nov 15, 2014 · The IsIpBlocked() method is public and called from the event handler in the Global.asax file. The method first determines if the given address is IPv4 or IPv6 and then compare the address …

  6. Global Exception Handling in ASP.NET - CodeProject

    Feb 22, 2002 · You accomplish this task by editing your Global.asax file as follow: protected void Application_Error(object sender, EventArgs e) { // excpt is the exception thrown // The exception that …

  7. Fight 404 errors with ASP.NET Routing - CodeProject

    Dec 28, 2008 · Here is an example: The attached project contains all the parts you'll need: WebFormRouteHandler created by Chris Cavanagh representing an IRouteHandler implementation, …

  8. Routing Integration - WCF feature - CodeProject

    Apr 16, 2012 · Routing Integration Steps: 1: In Global.asax.cs in Application_Start event add the ServiceRoute to the RouteTable. These routes added represents the virtual URIs which service will …

  9. Master Page Globalization - CodeProject

    Mar 13, 2009 · Global.asax is the first thing called upon page request, and thus provides us with a way to affect control creation. Because the culture of the current thread resets to default on page redirect …

  10. PHP, Global.asax and Output Caching - Code Project

    Jun 5, 2012 · Global.asax file is an optional file that contains code for handling application-level and session-level events raised by ASP.NET. To add that file into your Phalanger powered web, simply …