Author: harry_dhatt | Posted on: 12/9/2009 2:40:46 AM | Views : 331

hi frdns,
  i want to upload the only txt files to server? how can i check wheather the user has upload a file or not... using fileupload.hasfile or fileupload.postedfile..
   If FileUpload1.hasfile Then
            Label1.Text = "file attached"
   Else
            Label1.Text = "attach a  file"
   End If
also this code is not running properly... when a attach the file and click on sbmit button.. when i clicked button it process the Else part of if condition either i will attach the file or not... if i will use NOT in if condition then, First part of condition will be executed both times.. is this bug ?????
  plz suggest me.... i want to upload only text file... and also if anyone click on button widout attaching the file it will answer plz attach the file...
Go to the complete details ...