Hello
I have an asp.net page which is within an asp iframe. Sometimes
there's nothing to show in asp.net page, so I need to do something to
hide the iframe in the asp page, so I don't show a blank iframe.
Does anyone know how the javascript and
ClientScript.RegisterStartupScript to do this?
Thanks
-phl
John Timney (MVP) - 24 Aug 2007 10:30 GMT
you could try this script
http://guymal.com/mycode/iframe_size/
Dynamically resizes an iframe to fit the content
Regards
John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
> Hello
>
[quoted text clipped - 7 lines]
> Thanks
> -phl
big phil - 24 Aug 2007 15:13 GMT
You could put it like this:
If (something = something to show)
Response.Write ("<iframe with asp.net page syntax> ")
That's a trick I've used a few times.
Let me know if that solves it.
phil