IsPostBack problems...

Apr 2, 2009 at 12:50 AM
I can't seem to find a way to stay OUT of something like this:

if (!IsPostBack)

Reading through older posts I see that there used to be a FileUpload1.FileIsPosted property that worked, but I don't see that anywhere in the current version. What can I do? I need something like !IsCallback to avioid running everything in the pageload method everytime a file is uploaded. Thanks.
Apr 2, 2009 at 1:05 AM
FileIsPosted is still there
Apr 2, 2009 at 3:04 AM
In my intellisense I have ... FileBytes, FileContent, FileName ...

FileIsPosted would be between Content and Name... no go... I had version 2.0.3400.0 and it wasn't there... so I got 2.0.3410.0, and it's not there.
Apr 2, 2009 at 3:09 AM
 FileIsPosted is a property of the uploader not of the EventArgs
Apr 2, 2009 at 3:25 AM
Edited Apr 2, 2009 at 3:25 AM

This is what I have been attempting:

protected void Page_Load(object sender, EventArgs e)


(!IsPostBack && !CallBack3.IsCallback && !FileUpload1.FileIsPosted)
       //Do Something Here

No go...Is this not how I should be handling this?






Apr 2, 2009 at 6:03 AM
I was just esting this out on a page where I was already using the .NET File Upload control... and they were named almost the same. I just realized that I was trying to use the .NET control instead of the flajaxian one. All is good now.