473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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/Cl...on_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/s...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
Nov 18 '05 #1
1 2175
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)
"microsoft" <mrrednek@-NOSPAM-Hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
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/Cl...on_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/s...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

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Mark Johnson | last post by:
You have an, a, anchor with href link. Can you use a stylesheet to effectively disable the link, so that you can't click on it; that it will appear simply as text?
29
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank...
6
by: Raghu Raman | last post by:
Hi, we are doing an in house project in c#.net(asp.net).We wanted to close our application when ever the user presses the SIGNOUT button. Even though we programtically disconnects them from the...
1
by: Troy | last post by:
How do I answer the disable macro prompt automatically when opening an Excel workbook? We are using Excel 97 and 2002. In 2002 we want the Medium security (prompt user) to safeguard against e-mail...
2
by: JohnProgrammer | last post by:
I know I can fill the screen in VB.NET by starting my window maximized and without a border. My question is; in VB.NET is there a way to enable/disable the taskbar much like doing the "always on...
4
by: Blaine | last post by:
Does anyone know how I can hide a form from the TaskManager? I've set the ShowInTaskbar to False, but when using Alt-TAB to switch between applications, it appears as a blank icon. I can set it...
16
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
2
by: zhangyl | last post by:
I use a WebBrowser control to open an office Document in my form , but every time when I open a file, there a dialogbox named "File download" showed asking "Whether you want open or save this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.