Passing parameters to radWindow

2 posts, 0 answers
  1. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 21 Apr 2008 Link to this post


    I want to pass parameters in the url to a radWindow, I'm trying to put this, NavigateUrl="Configuracion.aspx?cliente='<%=me.Label1.Text %>'", but it doesn't send the label1 value.

    Also, I have tried to put navigate url in button click, but the application doesn't entry to my code, because it execute the client code first.

    How can I pass this parameter to my url, if my parameter is will loaded from a label?

    Best regards.
  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 23 Apr 2008 Link to this post

    You can not set it declaratively on this way.
    You should set it from the codebehind, e.g.
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
                <telerik:RadWindow ID="RadWindow1" 
        <asp:Label ID="Label1" Text="NinjaSpace" runat="server"></asp:Label> 

    RadWindow1.NavigateUrl = "Configuracion.aspx?cliente=" + Label1.Text
Back to Top