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

Open Rad Window From Any Link ERROR

1 Answer 20 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Shawn asked on 15 Apr 2011, 03:13 PM
I am looking to have a RadWindow open any URL I throw at it, but I am getting the following error:

BC30456: 'OpenRadWindow' is not a member of {page name}

It seems like it should be pretty simple, I must be missing something here...

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
   <script type="text/javascript">
    function OpenRadWindow(url) {
        radopen(url, "DisplayWindow");
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState = "false">
            <telerik:RadWindow Skin="Sunset"  ID="DisplayWindow" runat="server" Title="RadWindow" AutoSize="true" Left="10px" Top="10px" ReloadOnShow="true" Modal="true"  ShowContentDuringLoad="false" KeepInScreenBounds="True" />
<p><asp:LinkButton ID="LinkButton1" runat="server" OnClick="OpenRadWindow(''); return false;">Map It!</asp:LinkButton> </p>

1 Answer, 1 is accepted

Sort by
Georgi Tunev
Telerik team
answered on 18 Apr 2011, 06:08 AM
Hello Shawn,

The OnClick event handler (for the asp:linkbutton control) is a server-side one. Since your code is on the client, you should use OnClientClick.

Georgi Tunev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Asked by
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question