By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,662 Members | 1,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,662 IT Pros & Developers. It's quick & easy.

Page-Specific maxRequestLength

P: n/a
Hi All,

I am working with an ASP.NET website with .NET 1.1. I want to increase the
maxRequestLength value for *only* a single page (therefore, I can't set the
new value in machine.config or web.config because doing so would affect
*all* pages). I can't figure out how to do this... is there a page
directive or something I'm not seeing?
Thanks for your help!!

Eric
Apr 9 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
re:
!I want to increase the maxRequestLength value for *only* a single page
!I can't figure out how to do this... is there a page directive or something I'm not seeing?

You can't do it using a Page directive.

Here's all the allowable Page directives :

http://msdn2.microsoft.com/en-us/lib...4a(VS.71).aspx

You can't set httpruntime parameters on a per-page basis.
The http runtime is used by all pages and can't be modified for a single page's use.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eric" <er**@hiddenemail.com.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi All,

I am working with an ASP.NET website with .NET 1.1. I want to increase the maxRequestLength value
for *only* a single page (therefore, I can't set the new value in machine.config or web.config
because doing so would affect *all* pages). I can't figure out how to do this... is there a page
directive or something I'm not seeing?
Thanks for your help!!

Eric


Apr 9 '07 #2

P: n/a
Doh! Oh well, thanks Juan!
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eO**************@TK2MSFTNGP04.phx.gbl...
re:
!I want to increase the maxRequestLength value for *only* a single page
!I can't figure out how to do this... is there a page directive or
something I'm not seeing?

You can't do it using a Page directive.

Here's all the allowable Page directives :

http://msdn2.microsoft.com/en-us/lib...4a(VS.71).aspx

You can't set httpruntime parameters on a per-page basis.
The http runtime is used by all pages and can't be modified for a single
page's use.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eric" <er**@hiddenemail.com.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Hi All,

I am working with an ASP.NET website with .NET 1.1. I want to increase
the maxRequestLength value for *only* a single page (therefore, I can't
set the new value in machine.config or web.config because doing so would
affect *all* pages). I can't figure out how to do this... is there a
page directive or something I'm not seeing?
Thanks for your help!!

Eric



Apr 9 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.