Error: Unable to get value of the property 'GetWindowByName': object is null or undefined

2 posts, 0 answers
  1. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 09 Jun 2011 Link to this post

    Hi All,

    Here is the scenerio - I have a project in VS2010, on one of the pages I open the RAD Window using the following method (which works as expected):

    Dim strScript As String = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(ShowWindow);</script>"
    Page.ClientScript.RegisterStartupScript(Me.GetType, "ShowWindow", strScript)

    <script type="text/javascript">
        function ShowWindow() {
            var manager = GetRadWindowManager();
            var window1 = manager.GetWindowByName("QuoteWindow");
            window1.show();
        
    </script>


    As mentioned the above code works perfect - the problem is I simply copied this code across to another project which is identical to the first one and everytime I hit the button to open the RAD Window I get this error:

    'Error: Unable to get value of the property 'GetWindowByName': object is null or undefined'

    I have searched and searched the forums to no avail - please provide any help asap if possible as this is pretty urgent.

    Thanks in advance.


  2. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 09 Jun 2011 Link to this post

    I was using telerik 3.5 dlls with .4 components.

    Stupid mistake but all fixed now, thanks.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top