Hello
I try to work with telerik button using client side in external JS file but i cannot detect it, but when i put the code inside the page it works good.
this is Page HTML code
and this is my JS file code
thanx in advance
I try to work with telerik button using client side in external JS file but i cannot detect it, but when i put the code inside the page it works good.
this is Page HTML code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript" src="JavaScript.js"></script> </telerik:RadScriptBlock></head><body> <form id="form1" runat="server"> <div> <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" OnClientClicked="test"></telerik:RadButton> </div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> </form> </body></html>function test(sender,args) { var button = $find("<%= RadButton1.ClientID %>"); alert(button.get_text());}