This is a migrated thread and some comments may be shown as answers.

Show Equivalent Client Side Alert in Radwindow (i.e. Server Side Button Click)

1 Answer 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
gc_0620
Top achievements
Rank 1
gc_0620 asked on 22 Sep 2015, 11:26 PM

Hi I am using UI for ASP.NET AJAX Q1 2015 SP1. In my form,  some other event I am populating a hidden field (i.e. hdnFolderCreated).

Client Side event below code works

function disp_confirm() {
                        alert("Process Complete!!! " + "\n\n" + document.getElementById('<%=hdnFolderCreated.ClientID %>').value + "."
                              + "\n\nIf required, copy previous Month PDF files to verify the total's "
                              + "\nand Standard definitation file into above mentioned folder.");
 
                    }

My question is possible I can display the same alert message in a server side button click event  inside a Rad Window?  If so how? Thanks for any help.

gc_0620

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 25 Sep 2015, 06:00 PM
Hi gc_0620,

You can directly call the already created JavaScript function inside the server-side click handler of a button by registering it as a start-up script like follows:

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "KEY", "disp_confirm();", true);

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Window
Asked by
gc_0620
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or