Dear All,
I am novice of Telerik Rad Control,
In Rad 2008 Ajax/Common/CancelAJax eg --> I am trying to do in Master Page - Content Placeholder - ASPX Page.
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="OnRequestStart"
JAvASCRIPT FUNCTION
function OnRequestStart(ajaxPanel, eventArgs)
{
var eventTarget = eventArgs.EventTarget;
if (eventTarget == "<%= Button1.ClientID %>")
{
return false;
}
}
------------------
"<%= Button1.ClientID %>") is producing error as shown below
error :-
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Please Help,..
Thanks in Advance,
Uday Kumar Lazurus