Feed
Google+
Contact
XING
LinkedIn
Twitter
ICQ
meebo.com

ASP.NET - MaxRequestLength values on the Web page view

by Roland Schumacher alias GENiALi 27. Mai 2009 -- 141 words  -- 1 mal gelesen

I screw at the time an application rum that one allows to upload files. They are then stored in a SQL Server.

By default, ASP.NET limits the size 4 MB (4096 KB). Can be changed with this entry here.

[...]
< system.web > <!-customize upload size. Is approximately 4 MB in KB (4 MB 4096KB)--= >) < httpRuntime maxRequestLength = "8192" / > [...]

It therefore also makes sense that it informs the user about the maximum size of the file. I will also show how big a file may be. I wanna have customize but whenever the value of the HTML. So, it must be possible in the code.

For example to:

Configuration config = WebConfigurationManager.OpenWebConfiguration("~");
HttpRuntimeSection section config.GetSection("system.web/httpRuntime") = as HttpRuntimeSection; double maxFileSize = Math.Round(section.MaxRequestLength_/_1024.0,_1); ("{labFileSize.Text string.Format("{0:0.# =} MB ", maxFileSize);

When it comes more easily let me know.

kick it on dotnet-kicks.de

Tags:

Kommentare sind geschlossen

Statistik

Gesamte Posts: 1025
Dieses Jahr: 7
Diesen Monat: 1
Diese Woche: 0
Kommentare: 929
Total Bewertungen: 91
Ø Bewertung: 4,42
Meisten Kommentare
Google+ ... (28)
Beste Ø Bewertung
Tastaturlayout von Visual Stud ... (5)
Meiste Bewertungen
Windows 7 und die ersten Erfah ... (5)

Buttons

Stop Spam Harvesters, Join Project Honey Pot Benutzerprofil von GENiALi connection speed test network connection Bloggeramt.de Slug.ch Blog Verzeichnis und Blog Webkatalog Schumacher Roland Seitwert Valid XHTML 1.0 Transitional

writing