View Single Post
  #2 (permalink)  
Old May 12th, 2008, 07:50 PM
dparsons dparsons is offline
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmmm. I have never tried to use window.open() to refresh my frames (of course I don't use frames all that much anyway). I have a couple of suggestions:

First, unless it is necessary to go back to the server after the LinkButton is clicked, use the OnClientClick event of the LinkButton and wire it up like this:

<ItemTemplate>
<asp:LinkButton OnClientClick="javaScriptMethod(); return false;" runat="server" id="LinkButton1" />
</ItemTemplate>

This will prevent a postback.

Next, instead of window.open try:
parent.frames[n].location = 'somepage';

Where n is the number or the name of the frame you want to reload.

hth.
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
Reply With Quote