Issue with ajax Update panel and Javascript
-
HI, I am using update panel in my application.but i am facing one issue. I have one page for new enrolment of members, and i have two user controls Step1.ascx and Step2.ascx. My functionality is that at a time olny one control is visible on the page and other will be hide. for eg when user fills all fields in step1 and press next button then step2.acsx will be be visible true and user Step1.ascx will be visible false. all this happening at postback. both control is under update panel to avaid post back during change of visibility. On Step1.ascx i have one javascript variable var_pageName and its value is "Step1". I want to update this value during post back to "Step2" when Step2 user control visible is true and vise versa. but the problem i am facing is javascript value is not updating during postback. I had tried this with scriptManager.RegisterClientScriptBlock and also with scriptManager.RegisterStartupScriptBlock by palacing it on both Usercontrol level and also on page level. Please help as this is ver y urgent.
Sajid A.