Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JavaScript coding question
Message
From
27/09/2006 15:00:42
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01157580
Message ID:
01157616
Views:
16
Hi Kevin,

The solution I have used for this scenario is to place the button in a DIV tag with the DIV style.display="inline" and when the button is clicked, use Javascript to set the DIV style.display="none".

Bill

>Well, it's my turn to ask a question - i'm really stuck on something.
>
>I have a button on a web form, using ASP.NET 2.0. The button is a save button, where I have a C# method call in the code-behind.
>
>I need to disable the save button IMMEDIATELY when the user clicks it - I can't try to disable it in the code-behind, because the user can still click twice on it. So I'm guessing I need JavaScript.
>
>What confuses me is that I need the onclick event of the save button to run the javascript, as well as run my C# code-behind. Not quite sure of the syntax.
>
>I'm sure it's something simple,but I'm missing it. I'm going to do some google searches, but am also posting, in case anyone has run across this.
>
>Thanks,
>Kevin
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform