Refreshing a IFrame on an ASP page

I have several Iframes on an asp page. Upon the running of another asp file I want to refresh an existing iframe without refreshing the entire page. I need an example of code to do this.
dbishopAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
sybeConnect With a Mentor Commented:
You must use client side scripting (javascript) for that.
In the ASP that is being run, put some javaascript code that will reload the Iframe:

<script>
parent.IframeName.reload();
</script>

note that "reload()" does not work with IE3. If you want it to work with IE3 also, then use:

<script>
parent.IframeName.document.location = parent.IframeName.document.location;
</script>


0
 
dbishopAuthor Commented:
The iframe I need to refresh makes calls to a database so thats why I need it the refresh.
0
 
dbishopAuthor Commented:
Thanks,
You saved me alot of time.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.