how do i achieve this c# code in javascript
protected void Validate(object sender, EventArgs e)
{
var _typeName = sender.GetType().FullName;
}
i want to add the Validate in all RadControls (telerik) and i wanna check if the sender is type of RadDatePicker
i tried this but its not working so i wanna check if what is the type name of the sender.
if (Telerik.Web.UI.RadDatePicker.isInstanceOfType(sender))
{
alert("it is a datepicker");
}
thanks in advance..