Friday, March 26, 2004

ASP.Net: Post Method Increase File Size

ASP.NET Post Method file size settings

By default file upload size is limited to 4MB, this setting can be changed by updating the maxRequestLength attribute in the section in web.config file.

EXAMPLE
In web.config file under system.web tag.
You can set the size of ur file. as below
[httpRuntime executionTimeout="90" maxRequestLength="4096" <***4096 KB, increase it to your desired amount***>"
"useFullyQualifiedRedirectUrl="false" /]


How to set value to a password field in ASP.NET
I'm also facing the same problem. And from the web i found that due to security reasons, It is not possible to assign password values directly. But it is possible by the following way.

But it too doesn't works for me with VB.NET.

void Page_Load
{
txtPassword.Attributes["value"] = sqlRead("password")
}

Reference : http://www.learnmsnet.com/Articles/CSharpArticles/ASP.NET/385.aspx

Web: First Blog

Hello there :)

this is my first blog on the web.

-Prashant