hi,
I am building asp.net website project in visual studio.
On my site users can upload files -in web config I have restricted the max size to 20MB.
Also I added a global asax file following a tutorial which takes user to a specified page
with message if they try upload larger file as below.
step 1
added asax file to site with code below
Global.asax
<%@ Application Codebehind="~/App_Code/Global.asax.cs" Inherits="Global" Language="C#" %>
step 2
in App_Code folder added class called Global with code below
Global.cs
sing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// Summary description for Global
/// </summary>
publ ...
Go to the complete details ...