C
Colin Halliday
I have created a Web User Control (wuc) that incorporates an Update Panel.
I originally used a ScriptManager control within this but found that, when I
included the wuc on a page that had other Update Panels, I could not have
more than one ScriptManager on the resultant page.
So I changed the wuc to include a SriptManagerProxy instead of a
ScriptManager. Fine.
However the wuc originally included some code to set focus on the correct
control within itself such as:
me.scriptmanager.setfocus("me.txtBox2")
This worked fine until I had to replace the scriptmanager with the
scriptmanagerproxy.
The proxy has no setfocus method.
I tried the proxy.findcontrol("txtBox2").focus but this does not work!
Any help on how to control the focus within a wuc that uses an update panel
and scriptmanagerproxy would be greatly appreciated.
Thanks.
I originally used a ScriptManager control within this but found that, when I
included the wuc on a page that had other Update Panels, I could not have
more than one ScriptManager on the resultant page.
So I changed the wuc to include a SriptManagerProxy instead of a
ScriptManager. Fine.
However the wuc originally included some code to set focus on the correct
control within itself such as:
me.scriptmanager.setfocus("me.txtBox2")
This worked fine until I had to replace the scriptmanager with the
scriptmanagerproxy.
The proxy has no setfocus method.
I tried the proxy.findcontrol("txtBox2").focus but this does not work!
Any help on how to control the focus within a wuc that uses an update panel
and scriptmanagerproxy would be greatly appreciated.
Thanks.