Disable/Hide button when opening Dialog Box through ASP.NET

M

microsoft

I am looking for code for a button on a website, and I want it to prevent
users from clicking more than once while their request is being processed. I
would like it to disable or hide the button once clicked and then enable it
after the process is completed from either the server or a web dialog box.

I did find a sample on disabling the button while the server is processing
their request and the sample was found here:

http://www.codeproject.com/aspnet/ClickOnce_Button_Control.asp

It worked perfectly, but not if the button was clicked for a popup. I did
find code to show a modal dialog box, but that popup wouldn't display the
Acrobat file at all (I know, a real pain). The link for the code I found is
located here:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=2282&lngWId=10

Is there any sample code to disable a button OR display a separate popup
form module that can show an Acrobat file and not allow the user to go to
the main form until the Acrobat document is taken care of first?

I wish I could show what code I have so far but company policy won't allow
me to do that.

Impossible?

TIA
 
B

bruce barker

you should do the detection on the server side. what will you do if the user
hits the button, but the request never gets to your site? what if your site
recycles during the request? what if your site processed the request, but it
never made it back to the client? the internet is not a reliable transport,
you have to code for lost and duplicate requests

-- bruce (sqlwork.com)
 

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

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top