Stacey Fontenot
asked on
Javascript locks all drop downs from working
I have a web page with vb.net code behind. The page contains several combo boxes, and goes through some validation rules after user clicks the 'submit' button. If a validation error is found, a hidden <div> is displayed on the web page with the errors. The page scrolls up to the validation <div> using some javascript; see below which is executed from the code behind. For some reason, the javascript is causing the combo boxes and text input fields to be frozen. If the page is refreshed, the user can then modify or update the input controls. Anyone have an idea what is going on?
Javascript:
Dim script As String = "document.getElementById(' Validation Results'). scrollInto View(true) ;"
ScriptManager.RegisterStar tupScript( Page, Page.GetType(), "key", script, True)
Javascript:
Dim script As String = "document.getElementById('
ScriptManager.RegisterStar
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.