radwindow and script manager

3 posts, 0 answers
  1. Abdul Kadar
    Abdul Kadar avatar
    35 posts
    Member since:
    Oct 2008

    Posted 21 Jun 2009 Link to this post

    Dear Telerik Team,

    I placed a script manager on the master page.
    In the content page, I used the radwindow manager.
    On clicking the Save button, i need to call the alert window for displaying the message," Data Saved successfully.."
    the code doesn't work on the content page .Please help me regarding this urgently.Below is the code I have used.
    **** I used vb with code-behind


    Protected

     

    Sub LnkSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkSave.Click

     

     


    Dim
    MyQuery As String

     

     

    Dim MyCommand As sqlcommand

     

    Dim scriptstring As String = "radalert('Saved Successfully', 230,110);"

     

     

     

    //------------------My insert Query------------------//

     

     

      ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "radalert", scriptstring, True)
    End
    Sub

     



    Regards,
    Abdul kadar


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Jun 2009 Link to this post

    Hello Abdul Kadar,

    Try the following code for showing calling radalert from code behind.

    VB:
     
    Dim radalertscript As String = "function f(){radalert('Saved Successfully!', 230, 110); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);" 
    ScriptManager.RegisterStartupScript(MeMe.[GetType](), "radalert", radalertscript, True

    -Shinu
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Jun 2009 Link to this post

    Hi Abdul,

    I would also recommend checking this blog post - I believe it will be of help.

    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top