Click here to Skip to main content
13,046,773 members (40,864 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: I hope the whole week isn't going to go like this Pin
Marc Clifton31-Mar-14 2:05
protectorMarc Clifton31-Mar-14 2:05 
GeneralRe: I hope the whole week isn't going to go like this Pin
Mohamad M. Mohamad31-Mar-14 3:08
memberMohamad M. Mohamad31-Mar-14 3:08 
GeneralRe: I hope the whole week isn't going to go like this Pin
S u n s h i n e31-Mar-14 3:22
memberS u n s h i n e31-Mar-14 3:22 
GeneralRe: I hope the whole week isn't going to go like this Pin
OriginalGriff31-Mar-14 4:30
protectorOriginalGriff31-Mar-14 4:30 
GeneralRe: I hope the whole week isn't going to go like this Pin
Mohamad M. Mohamad31-Mar-14 19:54
memberMohamad M. Mohamad31-Mar-14 19:54 
GeneralRe: I hope the whole week isn't going to go like this Pin
BillWoodruff31-Mar-14 7:07
memberBillWoodruff31-Mar-14 7:07 
GeneralRe: I hope the whole week isn't going to go like this Pin
OriginalGriff31-Mar-14 7:58
protectorOriginalGriff31-Mar-14 7:58 
GeneralFile upload validation in asp.net mvc Pin
Shaik Akram31-Mar-14 0:27
professionalShaik Akram31-Mar-14 0:27 
<input type="file" data-val="true" data-val-required="please select a file" name="file"/>
@Html.ValidationMessage("file")

Hello every one,
thought it might help any one so I am posting this small code for validating file upload control to check whether the user has selected the file or not.

Here there is no any kind of filtering with file choosen to upload.just only validating the user to select the file.


Thanks
GeneralRe: File upload validation in asp.net mvc Pin
_Maxxx_31-Mar-14 0:29
professional_Maxxx_31-Mar-14 0:29 
GeneralRe: File upload validation in asp.net mvc Pin
Johnny J.31-Mar-14 0:34
professionalJohnny J.31-Mar-14 0:34 
GeneralRe: File upload validation in asp.net mvc Pin
OriginalGriff31-Mar-14 0:40
protectorOriginalGriff31-Mar-14 0:40 
GeneralRe: File upload validation in asp.net mvc Pin
S u n s h i n e31-Mar-14 1:03
memberS u n s h i n e31-Mar-14 1:03 
GeneralRe: File upload validation in asp.net mvc Pin
OriginalGriff31-Mar-14 1:07
protectorOriginalGriff31-Mar-14 1:07 
GeneralRe: File upload validation in asp.net mvc Pin
Marco Bertschi31-Mar-14 1:09
protectorMarco Bertschi31-Mar-14 1:09 
GeneralRe: File upload validation in asp.net mvc Pin
S u n s h i n e31-Mar-14 3:25
memberS u n s h i n e31-Mar-14 3:25 
GeneralRe: File upload validation in asp.net mvc Pin
BobJanova31-Mar-14 1:11
memberBobJanova31-Mar-14 1:11 
GeneralRe: File upload validation in asp.net mvc Pin
OriginalGriff31-Mar-14 1:15
protectorOriginalGriff31-Mar-14 1:15 
GeneralRe: File upload validation in asp.net mvc Pin
lukeer31-Mar-14 1:42
memberlukeer31-Mar-14 1:42 
JokePower over IP Pin
Marco Bertschi30-Mar-14 23:09
protectorMarco Bertschi30-Mar-14 23:09 
GeneralRe: Power over IP Pin
Rage30-Mar-14 23:14
professionalRage30-Mar-14 23:14 
GeneralRe: Power over IP Pin
Marco Bertschi30-Mar-14 23:15
protectorMarco Bertschi30-Mar-14 23:15 
GeneralRe: Power over IP Pin
Rage30-Mar-14 23:16
professionalRage30-Mar-14 23:16 
GeneralRe: Power over IP Pin
BobJanova31-Mar-14 1:10
memberBobJanova31-Mar-14 1:10 
GeneralRe: Power over IP Pin
Sergey Alexandrovich Kryukov9-Apr-14 12:37
mvpSergey Alexandrovich Kryukov9-Apr-14 12:37 
GeneralRe: Power over IP Pin
Kornfeld Eliyahu Peter30-Mar-14 23:20
professionalKornfeld Eliyahu Peter30-Mar-14 23:20 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 24 Jul 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid