Thank you all for your response.
It seems that I can not redirect,
It is not working for me
There is no page to response
I don't even get my custom error page.... which I don't really want any
way, but just tired it.
Thanks
"Karl" <none> wrote in message news:...
> I quickly tested it before suggesting it and it seemed to be working...
>
> Karl
>
> "Marina" <> wrote in message
> news:...
> > I think at the pt of the application error event, there would be no page
> > request to speak of, so I don't think you would be able to do this.
> >
> > "Karl" <none> wrote in message
> news:...
> > > The only thing I know of is in the application's error event
> > > (Application_Error method in global.asax), you should be able to check
> > > Server.GetLastError().InnerException it should be of type
HttpException
> > > with a message "Maximum request length exceeded"... you could check
for
> > > that particular error, clear the error (server.ClearError()) and
> redirect
> > > back to the input page with a value in the querystring to indicate the
> > > error.
> > >
> > > Karl
> > >
> > >
> > > "MS News (MS ILM)" <> wrote in message
> > > news:%...
> > > > Hello,
> > > >
> > > > How do I handle a user uploading a file from the browser that
exceeds
> > the
> > > > limit set by
> > > > web or machine config files
> > > > global.asax or handlers or module
> > > >
> > > > How can I return to the same upload page with some error to the user
> > > >
> > > > Thanks
> > > >
> > > > SAM
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|