473,320 Members | 1,914 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,320 software developers and data experts.

If a button is not visible

Is there some way where the code in the Button1_click sub will
still run ?

What if the button is disabled ?

Jan 25 '06 #1
4 969
do you mean is there a way that you can call the code without clicking
on the button?

Jan 25 '06 #2
On 24 Jan 2006 21:54:32 -0800, "Kram" <ma***********@gmail.com> wrote:
do you mean is there a way that you can call the code without clicking
on the button?


Yes, I need to be 100% certain that the code cannot be called by the
client browser, unless the button is clicked.
Jan 25 '06 #3
Use the asp:button and the postback call isn't called if the button is
disabled.
If you want to use client side scripting, don't register the button click in
the pageload if the button is disabled.

HTH,

Joey Chömpff

"dr****@yahoo.com" wrote:
On 24 Jan 2006 21:54:32 -0800, "Kram" <ma***********@gmail.com> wrote:
do you mean is there a way that you can call the code without clicking
on the button?


Yes, I need to be 100% certain that the code cannot be called by the
client browser, unless the button is clicked.

Jan 25 '06 #4
If the button is disabled, it won't be sent to the client in the first
place. If there are no other links to Button1_click, there won't be any way
to get there.

Eliyahu

<dr****@yahoo.com> wrote in message
news:6h********************************@4ax.com...
On 24 Jan 2006 21:54:32 -0800, "Kram" <ma***********@gmail.com> wrote:
do you mean is there a way that you can call the code without clicking
on the button?


Yes, I need to be 100% certain that the code cannot be called by the
client browser, unless the button is clicked.

Jan 25 '06 #5

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

Similar topics

1
by: Tim | last post by:
I have one main form that I use to view data as well as add new records. When I click the add new record button, many of the form's controls that arn't needed get set to invisible. When I'm done...
3
by: Not Me | last post by:
Hi, I have a problem with some of my command buttons, in design view I set their properties to not visible. When I load up the form they appear (visible). I can create another button to set...
3
by: Zürcher See | last post by:
Someone has implemented a Datagrid Button for the Windows.Form?
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
6
by: Rod Snyder | last post by:
I'm trying to set up a page with an asp.net link button that would send a user to a certain page and on page load execute a specific stored procedure tied to the button on the previous page. The...
5
by: Girish | last post by:
I have TWO submit buttons of type IMAGE on my asp form. This renders as <input type="image">. I need to be able to eble the ENTER button for both buttons. Yes, I know that for the input type...
4
by: Tim Wallace | last post by:
I have an ascx file in which I want to sometimes create an asp:button control based on a given value. Nothing I've tried has worked. How can I accomplish this task? Tim
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
5
by: Wonder | last post by:
How can I create or use the msgobx to show a message without a default button. The user has explicity to click on the button, so the msgbox closes it. Thanks,
3
by: GiJeet | last post by:
I put the the button property in the watch window but it doesn't stop when the property changes value. For example I put this.myButton.Visible in the watch window with an initial value of false...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.