Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Refreshing calling aspx page

1 view
Skip to first unread message

David C

unread,
May 11, 2008, 11:57:07 AM5/11/08
to
I have an aspx page with a GridView that has an onclick attribute added to a
LinkButton. The onclick calls the following Javascript function that opens
a new window to edit information:

function openTask(id, coid)
{
var surl = "TaskEdit.aspx?id=" + id + "&coid=" + coid;
void
window.open(surl,null,"height=400,width=600,status=yes,toolbar=no,menubar=no,location=no");
return false;
}

I would like to refresh (DataBind?) that GridView on the calling page when
the called page (TaskEdit.aspx) is closed. I tried using Page.PreviousPage
etc. but that did not work. Is there an easy way to do this? Thanks.

David


Alex Meleta

unread,
May 11, 2008, 12:53:56 PM5/11/08
to
Hi David,

Put "parent.refresh(); self.close()" in popup window. Or, change the url
of parent form to refresh.

Regards, Alex
[TechBlog] http://devkids.blogspot.com

DC> I have an aspx page with a GridView that has an onclick attribute
DC> added to a LinkButton. The onclick calls the following Javascript
DC> function that opens a new window to edit information:
DC>
DC> function openTask(id, coid)
DC> {
DC> var surl = "TaskEdit.aspx?id=" + id + "&coid=" + coid;
DC> void
DC> window.open(surl,null,"height=400,width=600,status=yes,toolbar=no,me
DC> nubar=no,location=no");
DC> return false;
DC> }
DC> I would like to refresh (DataBind?) that GridView on the calling
DC> page when the called page (TaskEdit.aspx) is closed. I tried using
DC> Page.PreviousPage etc. but that did not work. Is there an easy way
DC> to do this? Thanks.
DC>
DC> David
DC>


0 new messages