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

2 posts, 0 answers
  1. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 22 Sep 2015 Link to this post

    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.



  2. Vessy
    Vessy avatar
    1350 posts

    Posted 25 Sep 2015 Link to this post

    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);

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top