Link to home
Start Free TrialLog in
Avatar of Stacey Fontenot
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('ValidationResults').scrollIntoView(true);"
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True)
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial