bsarahim
asked on
parent window and chlid window
I have asp.net ajax tab. in one of the ajax tab.. I m having this link and the gridview
Dim i As Integer = Session("Productid")
LinkButton5.Attributes.Add
<div class="first last">("onclick", "javascript:OpenWin('" + i.ToString + "')")
<script type="text/javascript">
//window.onload = parent.frames(0).document. getElement ById('lblM enuTitle') .innerHTML = 'Location'
function OpenWin(id) {
var url = 'RelatedProducts.aspx?ID=' + id
window.open(url, 'newWindow', 'width=600,height=200,scro llbars=yes ')
return false;
}
</script>
where it popups a new window.. I will select the records and save it, once it is saved
the window will get closed
Page.ClientScript.Register StartupScr ipt(Me.Get Type(), "close", "<script language=javascript>window .opener.lo cation.hre f = 'simpleadd.aspx';self.clos e();</scri pt>")
But the problem here.. I dont want to refresh my whole page(parent page)..
rather than im looking to refresh only certain portion, where add new records can be displayed in the gridview. Thanks
Dim i As Integer = Session("Productid")
LinkButton5.Attributes.Add
<div class="first last">("onclick", "javascript:OpenWin('" + i.ToString + "')")
<script type="text/javascript">
//window.onload = parent.frames(0).document.
function OpenWin(id) {
var url = 'RelatedProducts.aspx?ID='
window.open(url, 'newWindow', 'width=600,height=200,scro
return false;
}
</script>
where it popups a new window.. I will select the records and save it, once it is saved
the window will get closed
Page.ClientScript.Register
But the problem here.. I dont want to refresh my whole page(parent page)..
rather than im looking to refresh only certain portion, where add new records can be displayed in the gridview. Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.