When you place runat="server" in a standard HTML tag, ASP.Net manages the identifier to ensure its uniqueness (like its own controls). You need to access the element using the identifier assigned by ASP.Net. Try the following:
var brk = document.getElementById('<%= hidBT.ClientID %>').value; var org = document.getElementById('<%= hidOrg1.ClientID %>').value;
Additional Information
If you are using framework 4.0, you can change this behavior at the element, page, or application level. Check out this link for a decent little tutorial. If you decide to install ClientIdMode on Static , you can access your items by the identifier that you originally assigned (they will not be changed).
James hill
source share