When i write javascript for droplist and text box validation.
The below error came.I don't know which type of 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. <% ... %>).
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. |
Please do needful

Arul RPosted May 31, 2012, 5:43 AM
Jaish MathewsPosted May 31, 2012, 5:28 AM
1. 1st whether this JS method you pasted is getting executed? put a break point in JS and try
2. Remove the JS method call from HTML side and see whether the error you mentioned here appearing or not?
Arul RPosted May 31, 2012, 5:17 AM
Jaish MathewsPosted May 31, 2012, 5:04 AM