My form is not able to load,getting the error-
Code:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Code:
var _HiddenLicenseRate = document.getElementById('<%= HiddenLicenseRate.ClientID %>');
For the alternative,I searched the Net
Code:
 function GetDGHLicenseFees() {
           alert('GetDGHLicenseFees');
           var _HiddenLicenseRate = document.getElementById('<# 
HiddenLicenseRate.ClientID %>');
           alert(_TxtDGH_Acreage);
}
Code:
protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            TxtDGH_Acreage.Attributes.Add("onKeyUp", "GetDGHLicenseFees();"); 
}
}


If I used the above code,Now my form is able to load atleats,but when the procedure GetDGHLicenseFees is called,then in _TxtDGH_Acreage is null.

Wat to do?? I m unabel to find the solution & nt getting y the error is coming???