Versuchs mal mit
if (articleImageFile.PostedFile != "")
oder
if (articleImageFile.PostedFile != String.Empty)
Matthias

> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Auftrag von Haffner Guenther
> Gesendet: Dienstag, 1. April 2003 12:15
> An: [EMAIL PROTECTED]
> Betreff: [Asp.net] file upload
> 
> 
> hi leute,
> 
> ich hab eine form mit fileupload. lediglich fileupload! :)
> 
> wenn der benutzer nun keine datei auswaehlt, und 
> auf upload klickt, dann
> hab ich ein problem:
> 
> if (articleImageFile.PostedFile != null) 
> 
> ist meine ueberpruefung, es sollte somit nur der 
> darin enthaltene code
> laufen wenn file da ist. aber das funktioniert nicht. :(
> 
> g.
> 
> _______________________________________________
> Asp.net mailing list
> [EMAIL PROTECTED]
> http://www.glengamoi.com/mailman/listinfo/asp.net
> 
> 



_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an