Hi friends,
i am developing a web user control. In that i was using RadGrid latest version,
i am strugling with few problems like
1. I am unable to write proper java script.
2. Export to Word / Pdf not working.
when write the code like this it raise an error when the page is loading
My Code:
Error like this:
Server Error in '/' Application.
Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
i am developing a web user control. In that i was using RadGrid latest version,
i am strugling with few problems like
1. I am unable to write proper java script.
2. Export to Word / Pdf not working.
when write the code like this it raise an error when the page is loading
My Code:
function
GotoNewRequestPage()
{
var obj = document.getElementById('<%= RadGridRequestLists.ClientID %>');
}
Error like this:
Server Error in '/' Application.
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. <% ... %>).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433