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

Passing parameters to radWindow

1 Answer 316 Views
Window
This is a migrated thread and some comments may be shown as answers.
Iosu Buenetxea
Top achievements
Rank 1
Iosu Buenetxea asked on 21 Apr 2008, 11:11 AM
Hi

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.

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 23 Apr 2008, 01:15 PM
You can not set it declaratively on this way.
You should set it from the codebehind, e.g.
ASPX:
<form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
    <div> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" 
            runat="server" 
            VisibleOnPageLoad="true" 
            VisibleStatusbar="true" 
            ></telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
    <asp:Label ID="Label1" Text="NinjaSpace" runat="server"></asp:Label> 
    </div> 
    </form> 


Codebehind:
RadWindow1.NavigateUrl = "Configuracion.aspx?cliente=" + Label1.Text
Tags
Window
Asked by
Iosu Buenetxea
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or