Show Panel When Uploading

H

Homa

My page contains 3 panels: pnlFile, pnlUploading, pnlDone.

in pnlFile, I have a File tag to get the file name, and a button to
upload the file.

After the user click btnUpload, How do I send the page with
pnlFile.Visible = false and pnlUpload.Visible = true when I'm doing
the upload?

Response.Flush() is not the answer....

public btnUpload_Click(...)
{
pnlFile.Visible = false;
pnlUploading.Visible = true;

[ What to put here ]

// TODO: Upload file

// Done

pnlUploading.Visible = false;
pnlDone.Visible = ture;
}


Thanks,

Homa Wong
 
A

Arthur Mnev

use javascript to hide / unhide.
During page load apply CSS style sheet with visible = false; then on form
submit change the stylesheet to the one with visible = true with javascript.
this will work as i have done it before.

- Arthur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top