holy cow,
I coding some adhoc stuff, trying to make a page to submit it-self using client script and RegisterStartupScript().
But the heck it give me REALLY WEIRED result!!!!
Me.RegisterStartupScript("
test01", "<script lang='javascript'>document
.forms[0].
submit();<
/script>")
As simple as this, but the script never get rendered in the html!!! And so not working.
But if I change it to <script lang='javascript'>alert(do
cument.for
ms[0]);</s
cript>
It WORKED!!!!
is it somekind of ASP.NET security or something I need to shit-out about?
TIA
Start Free Trial