Windows driven by server-side codes

2 posts, 0 answers
  1. lupotana
    lupotana avatar
    73 posts
    Member since:
    Nov 2006

    Posted 08 Jun 2010 Link to this post

    Hi,
    I want to use RadWindows for show a message after push a botton.
    The event of button must be server-side.

    Is it possibile driven a RadWindows from server side codes ?



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

    Posted 09 Jun 2010 Link to this post

    Hi,

    Yes, it is possible to open RadWindow from server code. You can configure the window dynamically in the code-behind, and make sure you set the VisibleOnPageLoad to True. Here is the example.

    C#:
     
    protected void Button1_Click(object sender, EventArgs e)   
    {   
        RadWindow window1 = new RadWindow();   
        window1.NavigateUrl = "http://www.google.com";   
        window1.VisibleOnPageLoad = true;   
        window1.Width = 500;   
        window1.Height = 300;   
        this.form1.Controls.Add(window1);   
    }   

    You can also refer the following help article for more information on this:
    Setting Server-Side Properties 

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top