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

RadWindowManager radOpen problem

3 Answers 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
dhuss
Top achievements
Rank 1
dhuss asked on 06 Oct 2009, 08:11 PM
I created a simple 1 page web that uses the radwindowmanager and the radOpen call. I have place this in a javascript function as shown in examples applications. I can not get the page to compile in order to test this. Any suggestions as to why is will not compile?

This is my aspx code:

<%

@ Page Language="vb" AutoEventWireup="false" CodeBehind="Telerik.aspx.vb" Inherits="WebApplication1.Telerik" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

<title>WebForm1</title>

 

 

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"/>

 

 

<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"/>

 

 

<meta name="vs_defaultClientScript" content="JavaScript"/>

 

 

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>

 

 

<script type="text/javascript" language="javascript">

 

 

function openRadWin() {

 

radopen(

"http://www.microsoft.com", "RadWindow1");

 

}

 

</script>

 

</

 

head>

 

<

 

body ms_positioning="GridLayout">

 

 

<form id="Form1" method="post" runat="server">

 

 

<telerik:RadScriptManager ID="ScriptManager" runat="server"></telerik:RadScriptManager>

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

 

<Windows>

 

 

<telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Maximize"></telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 

 

<asp:Button ID="btn" runat="server" OnClick="openRadWin()" Text="test" />

 

 

</form>

 

</

 

body>

 

</

 

html>

This is the compiler error description:

 

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'openRadWin' is not a member of 'ASP.telerik_aspx'.

Source Error:

Line 26:     </Windows>
Line 27:     </telerik:RadWindowManager>
Line 28: <asp:Button ID="btn" runat="server" OnClick="openRadWin()" Text="test" />Line 29:     </form>
Line 30: </body>

Source File: C:\inetpub\wwwroot\WebApplication1\Telerik.aspx    Line: 28


 


c:\windows\system32\inetsrv> "c:\Windows\Microsoft.NET\Framework\v3.5\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_global.asax.sebioeuu.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.Reporting\3.1.9.807__a9d7983dfcc261be\Telerik.Reporting.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\assembly\dl3\7cc3adc9\008d8bdb_d825ca01\Telerik.Web.UI.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\assembly\dl3\05c6249e\a66de186_bf46ca01\WebApplication1.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing.Design\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\3.1.9.807__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_Web_zyabhy9q.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls /warnaserror- /optionInfer+  "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_Web_zyabhy9q.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_Web_zyabhy9q.1.vb"


Microsoft (R) Visual Basic Compiler version 9.0.30729.1
Copyright (c) Microsoft Corporation.  All rights reserved.

C:\inetpub\wwwroot\WebApplication1\Telerik.aspx(25) : warning BC40000: 'Public Property Behavior() As Telerik.Web.UI.WindowBehaviors' is obsolete: 'This property is obsolete. Please use Behaviors instead.'.

            __ctrl.Behavior = Telerik.Web.UI.WindowBehaviors.Maximize
            ~~~~~~~~~~~~~~~                                          
C:\inetpub\wwwroot\WebApplication1\Telerik.aspx(28) : error BC30456: 'openRadWin' is not a member of 'ASP.telerik_aspx'.

            AddHandler __ctrl.Click, AddressOf Me.openRadWin()
                                               ~~~~~~~~~~~~~  
C:\inetpub\wwwroot\WebApplication1\Telerik.aspx(28) : error BC30456: 'openRadWin' is not a member of 'ASP.telerik_aspx'.

            RemoveHandler __ctrl.Click, AddressOf Me.openRadWin()
                                                  ~~~~~~~~~~~~~  

3 Answers, 1 is accepted

Sort by
0
dhuss
Top achievements
Rank 1
answered on 06 Oct 2009, 08:12 PM
sorry about how the code looks, so much for copy and paste
0
Accepted
Georgi Tunev
Telerik team
answered on 07 Oct 2009, 08:55 AM
Hello Dennis,

The OnClick eventhandler is a server handler - you could set the name of a server-side function there. To set a client-side event, you should use OnClientClick:
OnClientClick="openRadWin(); return false;" - note that you should also cancel the postback by using return false.

As for the code, I strongly recommend to use the Format Code Block tool from RadEditor's toolbar.

All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
dhuss
Top achievements
Rank 1
answered on 07 Oct 2009, 02:00 PM
that did it, thanks
Tags
Window
Asked by
dhuss
Top achievements
Rank 1
Answers by
dhuss
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or