Click here to Skip to main content
15,896,502 members

Comments by Riya-Pandey (Top 38 by date)

Riya-Pandey 19-Jan-16 7:18am View    
This is the function in the childpage inside document.ready

if ($('#<%= hiddSuccess.ClientId%>').val() == "1") {

$('input[id*="hiddId"]:first', window.parent.document).val($('#<%= hiddValue.ClientId%>').val());
$('input[id*="txtSelectOne"]:first', window.parent.document).val('ASUS_ME102A-1A035A : ASUS_ME102A-1A035A');
window.parent.closeIframe();
return false;
}


This is inside pageload of parent page

If Not IsPostBack Then
If (Not PrivilegeHelper.licenseLoginCheck(Session, Response, Request, "ABCD", True)) Then
Exit Sub
End If
Dim trans As Translator = New Translator(Session("UserLNG").ToString())
Translate(trans)
BindGrid(first, second)
End If
Riya-Pandey 19-Jan-16 7:08am View    
even if i am returning false or setting e.preventDefault() from child page, post back happens
Riya-Pandey 19-Jan-16 7:08am View    
nop. i have used IsNotPostback. and i have not reinitialized the values. coz of post back the values of both fields that i am populating from the child page becomes blank.

this is what is happening inside the pageLoad

If Not IsPostBack Then
If (Not PrivilegeHelper.licenseLoginCheck(Session, Response, Request, "ABCD", True)) Then
Exit Sub
End If
Dim trans As Translator = New Translator(Session("UserLNG").ToString())
Translate(trans)
BindGrid(first,second)
End If
Riya-Pandey 19-Jan-16 6:49am View    
window.parent.document is working fine. i checked just now that it is also setting the value in the corresponding fields. however post back is happening and i am loosing the values then. any suggestions. Can't use querystring , session , viewstate etc.
Riya-Pandey 11-Jan-16 2:31am View    
Yup It worked . i have now made it to work. Thank you Briyan