Redirect to Target (Frame)
-
Hi all, My app needs to refresh the right frame after clicking a control in the left frame. I know that this can't be done serverside, and must be done using Javascript. I also know that frames should be avoided in asp.net for favor of web controls. Without having to redesign my whole app, is there an easy way to accomplish this? Thanks! Frank "Keyboard Error - Press F1 to Continue"
-
Hi all, My app needs to refresh the right frame after clicking a control in the left frame. I know that this can't be done serverside, and must be done using Javascript. I also know that frames should be avoided in asp.net for favor of web controls. Without having to redesign my whole app, is there an easy way to accomplish this? Thanks! Frank "Keyboard Error - Press F1 to Continue"
Hi, you can register javascript code like following. This JS script is executed after page returns to client and it reloads specified frame.
// register javascript
Page.RegisterClientScriptBlock("reload",@"
window.top.frames['frameName'].location.reload();
");:)
Tomáš Petříček (Microsoft C# MVP)
www.eeeksoft.net | Photos | Fractal Snow -
Hi, you can register javascript code like following. This JS script is executed after page returns to client and it reloads specified frame.
// register javascript
Page.RegisterClientScriptBlock("reload",@"
window.top.frames['frameName'].location.reload();
");:)
Tomáš Petříček (Microsoft C# MVP)
www.eeeksoft.net | Photos | Fractal Snow