Hi Team Telerik,
We have recently started using Telerik for our product. In our application, we have used scripting to use server side variables at hundreds of places. For example as below.
Now, as we have introduced Telerik, we were facing issues around this. By browsing the documentation, we come to know that - we can use RadScriptBlock to avoid this. But I understand that it is only in case if we have script block and any server side variable we are using inside it.
I also gone through this and this posts, but I couldn't really understand what to do. Please assist.
One case I would like to share is, I have placed link (above mentioned code snippet) inside list view Layout Template. I have tried to add RAD script block around it. It worked fine for loading page. But, when I do paging, nothing happened and I observed below JS error
Any assistance will be greatly appreciate.
Thanks.
We have recently started using Telerik for our product. In our application, we have used scripting to use server side variables at hundreds of places. For example as below.
<
a
id
=
"lnk1"
class
=
"xyz"
href="abc.aspx?ReturnPath=<%= returnPath %>">Test</
a
>
Now, as we have introduced Telerik, we were facing issues around this. By browsing the documentation, we come to know that - we can use RadScriptBlock to avoid this. But I understand that it is only in case if we have script block and any server side variable we are using inside it.
I also gone through this and this posts, but I couldn't really understand what to do. Please assist.
One case I would like to share is, I have placed link (above mentioned code snippet) inside list view Layout Template. I have tried to add RAD script block around it. It worked fine for loading page. But, when I do paging, nothing happened and I observed below JS error
Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: The script tag registered for type 'System.Web.UI.Page' and key 'RadListView1$RadScriptBlock1' has invalid characters outside of the script tags: <
a
id
=
"lnk1"
class
=
"xyz"
href
=
"abc.aspx?ReturnPath=s%3d301%26c%3d3%26d%3d%26p%3d1%26"
>Compare</
a
> . Only properly formatted script tags can be registered.
...._validPosition(a.scrollLeft)||this._validPosition(a.scrollTop)))return {x:a.scr...
Any assistance will be greatly appreciate.
Thanks.