Click here to Skip to main content
16,016,165 members
Home / Discussions / C#
   

C#

 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George5-Jun-08 14:48
George_George5-Jun-08 14:48 
QuestionThreadpool Synchronization causing out of memory error Pin
sumathi pandarinathan26-May-08 0:12
sumathi pandarinathan26-May-08 0:12 
AnswerRe: Threadpool Synchronization causing out of memory error Pin
leppie26-May-08 4:03
leppie26-May-08 4:03 
GeneralRe: Threadpool Synchronization causing out of memory error Pin
sumathi pandarinathan26-May-08 21:09
sumathi pandarinathan26-May-08 21:09 
Questionfolderbrowserdialog Pin
huotari25-May-08 23:57
huotari25-May-08 23:57 
AnswerRe: folderbrowserdialog Pin
Dario Solera26-May-08 0:18
Dario Solera26-May-08 0:18 
AnswerRe: folderbrowserdialog Pin
D i x y26-May-08 0:56
D i x y26-May-08 0:56 
QuestionFix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
kishoregani25-May-08 23:30
kishoregani25-May-08 23:30 
I attended the VS2005 Launch Event and I was told there that with this control, new in 2.0, it was possible to prevent user from uploading a file that is too big.

I can use that feature in my website, but all I could find was the myUploadControl.PostedFile.ContentLength property which is only available AFTER the file has been uploaded.

Of course it would be very stupid to wait untill the user has uploaded his oversized file and then saying "sorry you can't upload this file, it's too big"...

Now I have the problem that, when the user selects e.g. a 5mb file he gets a "page cannot be displayed" instantly because 5mb exceeds the default limit of 4mb in asp.net.

I only want to allow a user to upload files that are maximum 2mb, if he selects a 3mb (or even 4gb) file I want to give him a message that the selected file is too big.

How can I accomplish this ?
AnswerRe: Fix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
Dario Solera26-May-08 0:21
Dario Solera26-May-08 0:21 
GeneralRe: Fix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
Vasudevan Deepak Kumar26-May-08 19:18
Vasudevan Deepak Kumar26-May-08 19:18 
QuestionHow to get the row/column/data of cells selected in worksheet of Excel using C# Pin
Varad_Rajan25-May-08 23:25
Varad_Rajan25-May-08 23:25 
AnswerRe: How to get the row/column/data of cells selected in worksheet of Excel using C# Pin
leppie26-May-08 4:05
leppie26-May-08 4:05 
QuestionDetecting if a key is pressed outside the key events Pin
Christian Wikander25-May-08 23:24
Christian Wikander25-May-08 23:24 
AnswerRe: Detecting if a key is pressed outside the key events Pin
Roger Alsing26-May-08 0:55
Roger Alsing26-May-08 0:55 
AnswerRe: Detecting if a key is pressed outside the key events Pin
Ed.Poore26-May-08 0:55
Ed.Poore26-May-08 0:55 
GeneralRe: Detecting if a key is pressed outside the key events Pin
Christian Wikander26-May-08 1:28
Christian Wikander26-May-08 1:28 
QuestionConsole.WriteLine Pin
George_George25-May-08 23:21
George_George25-May-08 23:21 
AnswerRe: Console.WriteLine Pin
Colin Angus Mackay25-May-08 23:51
Colin Angus Mackay25-May-08 23:51 
GeneralRe: Console.WriteLine Pin
George_George26-May-08 0:01
George_George26-May-08 0:01 
AnswerRe: Console.WriteLine Pin
DaveyM6925-May-08 23:53
professionalDaveyM6925-May-08 23:53 
GeneralRe: Console.WriteLine Pin
George_George26-May-08 0:02
George_George26-May-08 0:02 
QuestionIgnoring folders when unzipping with FastZip Pin
Kiefie25-May-08 23:16
Kiefie25-May-08 23:16 
QuestionNeed help to do a "online members" list to my chat Pin
Bobbz25-May-08 23:09
Bobbz25-May-08 23:09 
AnswerRe: Need help to do a "online members" list to my chat Pin
Christian Wikander25-May-08 23:30
Christian Wikander25-May-08 23:30 
QuestionCapture mouse click to get application name Pin
Burim Rama25-May-08 23:03
Burim Rama25-May-08 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.