hi,
I am using a create user wizard that has been personlized to capture address and other data.
There is also a file upload control that accepts MP3
In web config I specified maximum of 20MB
if the user uploads large file they will be redirected to Error page with a warning.
I have set up this using Global Asax file and method as below
private const int MyMaxContentLength = 1000; //Wathever you want to accept as max file.
protected void Application_BeginRequest(object sender, EventArgs e)
{
if (Request.HttpMethod == "POST"
&& Request.ContentLength > MyMaxContentLength)
...
Go to the complete details ...