Last post May 11, 2007 03:15 PM by Haissam
May 09, 2007 05:41 PM|Amanat|LINK
I am working in Vb.net
I am having a problem of refreshing a parent page from a pop up window:
Parent page has a dropdown list which needs to be toggled on and off by selecting the checkbox in the pop up window, and then refreshing the parent page, i am able to do it but not through pop up window , so can anyone give useful suggestions.
Thanks alot for viewing this post and suggestions will be appreciated.
Web Application Projects
visual studio .net 2003
May 10, 2007 11:16 PM|Haissam|LINK
Try to use the below code in your child window
Page.ClientScript.RegisterStartupScript(me.GetType(),"refresh","var url = window.opener.location.href; window.opener.location.href = url;",true)
May 11, 2007 12:14 AM|arsalan|LINK
May 11, 2007 02:19 PM|Amanat|LINK
Thanks alot for replying back, but this code line is giving an error that clientscript is not member of page class.
i will appreciate any help further.
May 11, 2007 03:15 PM|Haissam|LINK
For next time, please provide more information about which framework you are using. the ClientScript exists in ASP.NET 2.0. anyhow try the below code