How to access parent page aspx control id in child page aspx asp.net or javascript
HiddenField txt = this.Parent.FindControl("hdnlnkEdit") as HiddenField;
txt.Value = "Krishna";
I need like above example.
is there any chance from code behind
function popitup(url, windowHeight, windowWidth) {
var centerWidth = (window.screen.width - windowWidth) / 2;
var centerHeight = (window.screen.height - windowHeight) / 2;
newwindow = window.open(url, 'name', 'resizable=0,scrollbars=yes,width=' + windowWidth +
',height=' + windowHeight +
',left=' + centerWidth +
',top=' + centerHeight);
//if (window.focus) { newwindow.focus() }
return false;
}
<a href="Comments.aspx" onclick="return popitup('Comments.aspx?provID=<%#DataBinder.Eval(Container.DataItem, "provID")%>&StatusDescID=<%#DataBinder.Eval(Container.DataItem, "ProvStatus")%>&StatusCategory=<%#DataBinder.Eval(Container.DataItem, "StatusCateg")%>&Name=<%#DataBinder.Eval(Container.DataItem, "Name").ToString().Replace("'"," ").Replace("$"," ").Replace("#","")+ DataBinder.Eval(Container.DataItem, "TaxMpin").ToString().Replace("'"," ").Replace("$"," ") %>','650','1270')" class="gridText">Comments</a>