hadinatayp
Well-known member
- Joined
- Feb 8, 2006
- Messages
- 95
- Programming Experience
- Beginner
i have a fileUpload control and a button
the idea is to check whether there is a file in the fileupload control or not
if i browse for a file (any file) and click the button the code below would execute normally, but if i enter a random string such as "asfdasfas" or "23432" the code below didn't execute as it should be (the page postback event also didn't happen)
does anyone know how to overcome this problem?
thx
the idea is to check whether there is a file in the fileupload control or not
if i browse for a file (any file) and click the button the code below would execute normally, but if i enter a random string such as "asfdasfas" or "23432" the code below didn't execute as it should be (the page postback event also didn't happen)
does anyone know how to overcome this problem?
thx
VB.NET:
if fileUpload1.hasFile=true then
bla bla bla...
else
bla bla bla...
end if