SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

How to cancel upload on validate? Options
mkadlec
#1 Posted : Friday, May 07, 2010 5:51:00 PM
Rank: Newbie

Groups: Registered

Joined: 4/13/2010
Posts: 2
Location: Seattle

I would like to do a validate on my submit button and cancel the upload if there is a problem, how can I do this?

My submit code is something like this:

     protected void submitButton_Click(object sender, System.EventArgs e)
    {

         Page.Validate();
         if (!Page.IsValid)
         {

            // Display a non valid message here

             ... <- Would like to cancel the upload here

 

  I think this executes after the upload, is there a method called before the upload happens?  Any idea if there is a cancel upload call?

 

Mark.

Axosoft
#2 Posted : Saturday, May 08, 2010 11:13:20 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

What are you trying to validate before the upload? Something about the selected files? Or other things on the page? Do the validators have client side validation script, or are they server side only?

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.