Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
OBINNA_EKE
Posting Yak Master
234 Posts |
Posted - 2006-10-31 : 08:24:31
|
I have a Button called SaveMessage that initiate a Javascript callWhen the user click the SaveMessage button the first time nothing happen s when he click it again the button executes.This button is meant to execute on first click and the user have to click twice why ?Thanks AddPopupMessage(SaveMessage, "Hello People "); public void AddPopupMessage(WebControl ctl, string message) { ctl.Attributes.Add("onclick", "alert( '" + message + "'); "); }If it is that easy, everybody will be doing it |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-10-31 : 08:28:43
|
Are you sure the button has focus the first time you click the button?Isn't this what you wanted with the play button in Query Analyser?Peter LarssonHelsingborg, Sweden |
 |
|
OBINNA_EKE
Posting Yak Master
234 Posts |
Posted - 2006-10-31 : 08:31:34
|
How do you set the Focus on the SaveMessage button ?RegardsIf it is that easy, everybody will be doing it |
 |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-10-31 : 13:13:47
|
SaveMessage.Focus();when the page loads the first time take at its source. see if the javascripts onclick event is there.Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp |
 |
|
|
|
|