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

Modality with Masterpage?

3 Answers 50 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 29 Jun 2009, 05:39 PM
Hi All,

I am trying to implemenent login function following the Tooltip/server side properties/Modality demo example. 

The probelm is that it is not working when I use masterpage. either put the everything in the masterpage or put in the content page, nothing will happen when click the button to show the login form.

Please help

TIA 

Jerry
 

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Jul 2009, 12:44 PM
Hi Jerry,

The reason for this problem is that in the JavaScript, the ID of the button is hardcoded ("Button2"). If you are using this code in a masterpage, you need to use the ClientID of the control -
if (args.get_postBackElement().id == "<%= Button2.ClientID%>")

For your convenience I attached a modified version of the code to this thread - please check it and use it as a base in your scenario.

Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Fraser
Top achievements
Rank 1
answered on 02 Nov 2011, 12:52 PM
Hi - I've tested your example with the latest version of the controls, and I'm getting a javascript error saying it can't find the function "OnClientBeforeHide".

Any ideas?

Fraser
0
Fraser
Top achievements
Rank 1
answered on 02 Nov 2011, 02:40 PM
Hi - Got this to work, using the example on the main website, and <%= Button1.ClientID%> rather than the javascript provided in the modified example.

Thanks,
Fraser
Tags
ToolTip
Asked by
Jerry
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Fraser
Top achievements
Rank 1
Share this question
or