Monday, January 11, 2010

Refresh Parent Page from Popup/child page

some time we have a datagrid/gridview in parent form and we add new values or we remove value from existing grid by using a popup from and we want that when we finish our add/delete/update from popup/child page my parent form should automatically get refresh so i can see the changes i have done in popup form.
write the following code in your page:

< script language="javascript" type="text/javascript" >
function closeme()
{
opener.location.reload();
window.close();
}
< /script >


< input id="btnClose" class="form-button" onclick="closeme()" type="button" value="Close" / >

Share This!


1 comment:

Keep Smiling said...

is good but i want question like this

what is code of masterpage designed and added one label it's values can be send at runtime using different webforms?

Powered By Blogger · Designed By Seo Blogger Templates