Hi I 'm new to ajax (this is my first ajax app) and need alittle help of where to start looking to fix a problem
I have a page that is populated with a updatepanel ->tabcontainer with 1- 5 tabs generated dynamically and each tab is populated with 1- 10 a ascx user controls that hold a txtbx and dropdownlist.
I use Javascript in the aspx page to let user modify tbx values by making selections from the dropdownlists there by populating the tbx. If a user changes from one tab to another tab that tabcontainer is reload via autopostback and the tab_Changed event is fired. basiclly all is fine
The problem arraises when on postback or if a user has made selections on one tab and desides to click on a different tab the tab panel either doesn't load the user controls or the tabindex jumps + 1 to a tab which the user hasn't choosen causing strange and unwanted behavior in the app.
It seems to me like the onclick event with the tabpanel is somehow firing because of the javascipt? the controls on the tabpanel d "postbackBlick" when the user make a selection which is also alittle strange
My question is: does javascript have to be registered with the pageObj?
My Javascripts are not registered with the page but att invoke by adding a attribute on the control when it is created by invoking Ctrl.add.Attribute(on_click", javascript:loadtbx(this,para2,para3)
could this be the root of behavior problem in the tab panel? if so which Scriptmanager.register method should i just use ? if possible I want aviod lifting my javacript code from the aspx to code behind