Executing JavaScript on asp:button_click event
-
Hi, I have a button named btn1, now under the btn1_click event i wrote the following: if(condition) { } else { this.RegisterClientScriptBlock("",DisplayAlert()); } ------------- public string DisplayAlert() { string script=""; script += ; script += "alert('Text');"; script += " } Now the alert is being displayed but the entire page is being blank when displaying the alert box. The requirement is that original page should be at the background while displaying the alert message. Thanks
Gautham
-
Hi, I have a button named btn1, now under the btn1_click event i wrote the following: if(condition) { } else { this.RegisterClientScriptBlock("",DisplayAlert()); } ------------- public string DisplayAlert() { string script=""; script += ; script += "alert('Text');"; script += " } Now the alert is being displayed but the entire page is being blank when displaying the alert box. The requirement is that original page should be at the background while displaying the alert message. Thanks
Gautham
-
Hi, I have a button named btn1, now under the btn1_click event i wrote the following: if(condition) { } else { this.RegisterClientScriptBlock("",DisplayAlert()); } ------------- public string DisplayAlert() { string script=""; script += ; script += "alert('Text');"; script += " } Now the alert is being displayed but the entire page is being blank when displaying the alert box. The requirement is that original page should be at the background while displaying the alert message. Thanks
Gautham
-
Hi, I have a button named btn1, now under the btn1_click event i wrote the following: if(condition) { } else { this.RegisterClientScriptBlock("",DisplayAlert()); } ------------- public string DisplayAlert() { string script=""; script += ; script += "alert('Text');"; script += " } Now the alert is being displayed but the entire page is being blank when displaying the alert box. The requirement is that original page should be at the background while displaying the alert message. Thanks
Gautham