If i put the following code into the page load event on a page...
it works and registers the script..
HOWEVER
if i put this insde a custom server control it does not work?
any ideas?
string script = "<script language=javascript>\r\n";
script += "function StoreValue(itemID, sender)\r\n";
script += "{\r\n";
script += " var o = document.getElementById(itemID);\r\n";
script += " o.value = sender.innerHTML;\r\n";
script += "}\r\n";
script += "//-->\r\n";
script += "</script>\r\n";
this.Page.RegisterClientScriptBlock("WB_Input_JS", script);