Hello.
I'm struggeling with one think.
I have got already registered JavaScript in my web application
(RegisterClientScriptBlock) and, ofcourse, I can invoke it with
methods like onClick(), onMouseOver(), etc. But I need to invoke it
from my C# code behind file. Te example is shown below?? Is it
possible?? Thanks for help
--------------------------- C# code -------------------------------
string showHideSearch;
showHideSearch = "<script type=\"text/javascript\"function
showOrHide(what) { if (document.getElementById) " +
" { var style2 =
document.getElementById(whichLayer).style; style2.display =
style2.display? \"\":\"block\";" +
" } else if (document.all) { var style2 =
document.all[whichLayer].style; style2.display = style2.display? \"\":
\"block\"; " +
" } else if (document.layers) { var style2 =
document.layers[whichLayer].style; style2.display = style2.display?
\"\":\"block\";" +
" } } </script";
RegisterClientScriptBlock("show_and_hide", showHideSearch);
-- And here I would like to invoke the JavaScript
-- like for ex: Page.Invoke("showOrHide"); --this is ofcourse wrong