Home » 2011 » December

Archive for December, 2011

Drop-down onChange event

Chose file type: <select onChange=”window.location=this.options[this.selectedIndex].value;”> <option selected>Please select</option> <option value=”Music.aspx”>Music Files</option> <option value=”Movie.aspx”>Movies</option> <option value=”OfficeDoc.aspx#word”>Word Files</option> </select> EXAMPLE: Chose file type: Please select…Music FilesMoviesWord Files

VB.NET – Single file upload

WUI View Home | Upload File | Close Window Enter requested information: Your name X File title: File category: ComedyPlease select…Sci-FiWild West File type: DivX Video FilePlease select…Windows movie videoAudio Video Interleave File Select a file to upload: Additional note: Designer view (expand) < %@ Import Namespace=”System.IO” %> < %@ Import Namespace=”System.Data.SqlClient” %> < %@ […]

Maximum request length exceeded

Having issues uploading files? Getting message like “maximum request length exceeded?” The solution to this is simple; add the following code to your configuration file: <configuration> <system.web> <httpRuntime maxRequestLength=”35000″ /> </system.web> </configuration> * set the maxRequestLength to whatever your need might be.