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

Why I get error message, when I click the linkbutton second time?

5 Answers 39 Views
Window
This is a migrated thread and some comments may be shown as answers.
Vinix
Top achievements
Rank 1
Vinix asked on 12 May 2008, 07:37 AM

When I click the LinkButtom, I get an error message,” Microsoft JScript runtime error: Object doesn't support this property or method”.

How to solve this problem?

Many thanks for your replying.


<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
 
    <script type="text/javascript">  
            <!--            
                function AddLink()  
                {  
                    //debugger  
                    window.radopen("AddLink.aspx", "AddLink");  
                }    
             --> 
    </script> 
 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Telerik">  
                <Windows> 
                    <telerik:RadWindow ID="AddLink" Title="AddLink" ReloadOnShow="true" Modal="true" 
                        VisibleStatusbar="false" Behaviors="Default" runat="server" Height="180">  
                    </telerik:RadWindow> 
                </Windows> 
            </telerik:RadWindowManager> 
        </div> 
        <asp:LinkButton ID="LinkButton_AddLink" runat="server" OnClientClick="AddLink();return false;">AddLink</asp:LinkButton> 
    </form> 
</body> 
</html> 

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 May 2008, 10:21 AM
Hello Liu Pei-Sen,

The code that you posted does not raise such error on our side - you can check this in the attached movie. Please open a support ticket and send us a sample project (make sure it can be run locally) where we can observe the error and we will check it right away.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Vinix
Top achievements
Rank 1
answered on 14 May 2008, 09:01 AM
The code will work fine at the first time, but it will alret the error message when you click the link button second time.

Many thanks for your replying.
0
Accepted
Georgi Tunev
Telerik team
answered on 14 May 2008, 10:00 AM
Hi again Liu,

I reproduced the problem - I apologize for missing it in my previous reply. The reason for this problem is that both your function and RadWidnow have the same name - AddLink. Change the name of the function or the name of the Window and you will not experience this problem.



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Vinix
Top achievements
Rank 1
answered on 16 May 2008, 04:02 AM
Many thanks for your helping.
I think that I don't describe my question clearly.
The problem is solve.
Thank you very much.
0
Phil
Top achievements
Rank 2
answered on 23 Feb 2011, 03:11 PM
Hi Guys:
Thanks, ... I had the same problem.  I was pretty frustrated, and now I see the light.
Phil
Tags
Window
Asked by
Vinix
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Vinix
Top achievements
Rank 1
Phil
Top achievements
Rank 2
Share this question
or