If a button is not visible

  • Thread starter Thread starter drewdr
  • Start date Start date
D

drewdr

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

What if the button is disabled ?
 
do you mean is there a way that you can call the code without clicking
on the button?
 
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.
 
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
 
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
 

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

Back
Top