P
Pselus
I have a dynamically created page. The page creates an UpdatePanel
(created at Design time) which has an ASP:Table (design time) in it.
The table has rows with a textbox (run time) that runs some Javascript
code when it is typed in.
There is also a linkbutton (run time) next to this textbox that when
clicked uses Ajax to reload the Javascript method.
However, the Javascript is not being updated.
I realize that most people post this question and the answer is "Use
ScriptManager instead of Page.ClientScript" bu tthe problem is that
I'm already using ScriptManager.
Here is my line of code:
ScriptManager.RegisterClientScriptBlock(updpnlHolder,
typeof(UpdatePanel), "AddOnLife", code, true);
I've tried registering it to the UpdatePanel, to the Page, to the
ASP:Table inside the Panel, even to the Textbox. The Textbox is the
only one that errors (saying the control must be in the Page control
tree) but the rest of them go through without erroring...but they
don't actually update the Javascript.
Anyone have any ideas?
(created at Design time) which has an ASP:Table (design time) in it.
The table has rows with a textbox (run time) that runs some Javascript
code when it is typed in.
There is also a linkbutton (run time) next to this textbox that when
clicked uses Ajax to reload the Javascript method.
However, the Javascript is not being updated.
I realize that most people post this question and the answer is "Use
ScriptManager instead of Page.ClientScript" bu tthe problem is that
I'm already using ScriptManager.
Here is my line of code:
ScriptManager.RegisterClientScriptBlock(updpnlHolder,
typeof(UpdatePanel), "AddOnLife", code, true);
I've tried registering it to the UpdatePanel, to the Page, to the
ASP:Table inside the Panel, even to the Textbox. The Textbox is the
only one that errors (saying the control must be in the Page control
tree) but the rest of them go through without erroring...but they
don't actually update the Javascript.
Anyone have any ideas?