P
pealy2
A quick pointer to anyone struggling with the RegisterClientScriptBlock
function, unless you already have a <FORM> section in your page then
the script will not be added.
I use vb code to generate all my visual objects on a page and it took
me ages to work out why it wouldn't work on that page. The simple
solution is to manually add a <FORM> </FORM> section to your page (I
found a page which did have the section to see where to put it)
Hope this helps someone, RegisterClientScriptBlock is seriously useful,
I'm using it for sharing variables between my server code and my page
scripts.
function, unless you already have a <FORM> section in your page then
the script will not be added.
I use vb code to generate all my visual objects on a page and it took
me ages to work out why it wouldn't work on that page. The simple
solution is to manually add a <FORM> </FORM> section to your page (I
found a page which did have the section to see where to put it)
Hope this helps someone, RegisterClientScriptBlock is seriously useful,
I'm using it for sharing variables between my server code and my page
scripts.