views:

19

answers:

0

I have an aspx page with "step" session that load usercontrols accourding to the "step" session.

when step = 1 its loading usercontrol1 when step = 2 its loading usercontrol2 .... .... when step = XX its loading usercontrolXX

I'm using jquery in usercontrol1 and the page is working fine but when I'm moving to step 2 and calling to javascript function it's calling to the javascript from usercontrol1.

I'm not reloading the aspx page when moving from step 1 to step 2 (user control 1 firing an event that clear all controls and set step session to 2 which finally add the Usercontrol2 to the page)

i can move all the javascript to usercontrol1 but the javascript using values from fields accourding their ClientIDs which are not in usercontrol1 - therefore the javascript must be in usercontrol2

Any idea how can I solve it?