Click here to Skip to main content
15,124,353 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCalling a js function from a different aspx.cs page problem. [modified] Pin
betreyal12-Mar-10 10:02
Memberbetreyal12-Mar-10 10:02 
AnswerRe: Calling a js function from a different aspx.cs page problem. Pin
Sandeep Mewara12-Mar-10 11:00
mvaSandeep Mewara12-Mar-10 11:00 
QuestionRe: Calling a js function from a different aspx.cs page problem. [modified] Pin
betreyal12-Mar-10 11:25
Memberbetreyal12-Mar-10 11:25 
AnswerRe: Calling a js function from a different aspx.cs page problem. Pin
Sandeep Mewara12-Mar-10 20:05
mvaSandeep Mewara12-Mar-10 20:05 
GeneralRe: Calling a js function from a different aspx.cs page problem. Pin
betreyal15-Mar-10 5:22
Memberbetreyal15-Mar-10 5:22 
AnswerRe: Calling a js function from a different aspx.cs page problem. Pin
Not Active12-Mar-10 16:02
mentorNot Active12-Mar-10 16:02 
AnswerRe: Calling a js function from a different aspx.cs page problem. Pin
betreyal15-Mar-10 10:39
Memberbetreyal15-Mar-10 10:39 
AnswerRe: Calling a js function from a different aspx.cs page problem. Pin
carlecomm14-Mar-10 16:51
Membercarlecomm14-Mar-10 16:51 
Hi,

You can try the code below:

Child page:
if (!IsPostBack)
{
CloseButton.Attributes.Add("onclick","return _SetValue();");
}

function _SetValue()
{
var lblRelated = window.opener.document.getElementById('Related');
var lblQuery = document.getElementById('Query');

lblRelated.innerText = lblQuery.innerText;

window.close();
}


Hope it helpsSmile | :)

modified 27-May-14 4:49am.

GeneralRe: Calling a js function from a different aspx.cs page problem. Pin
betreyal15-Mar-10 5:33
Memberbetreyal15-Mar-10 5:33 
AnswerRe: Calling a js function from a different aspx.cs page problem. Pin
betreyal15-Mar-10 6:00
Memberbetreyal15-Mar-10 6:00 
QuestionHIddenfield value lost on postback - why? Pin
AndyASPVB12-Mar-10 5:08
MemberAndyASPVB12-Mar-10 5:08 
AnswerRe: HIddenfield value lost on postback - why? Pin
R. Giskard Reventlov12-Mar-10 5:22
MemberR. Giskard Reventlov12-Mar-10 5:22 
GeneralRe: HIddenfield value lost on postback - why? Pin
Not Active12-Mar-10 5:24
mentorNot Active12-Mar-10 5:24 
GeneralRe: HIddenfield value lost on postback - why? Pin
R. Giskard Reventlov12-Mar-10 6:28
MemberR. Giskard Reventlov12-Mar-10 6:28 
GeneralRe: HIddenfield value lost on postback - why? Pin
AndyASPVB12-Mar-10 6:25
MemberAndyASPVB12-Mar-10 6:25 
AnswerRepost [modified] Pin
Not Active12-Mar-10 5:23
mentorNot Active12-Mar-10 5:23 
AnswerRe: HIddenfield value lost on postback - why? Pin
Not Active12-Mar-10 5:30
mentorNot Active12-Mar-10 5:30 
QuestionWeb site related Pin
Sasmi_Office12-Mar-10 2:59
MemberSasmi_Office12-Mar-10 2:59 
AnswerRe: Web site related Pin
Not Active12-Mar-10 3:19
mentorNot Active12-Mar-10 3:19 
QuestionHow do we find out During Month transactions took place in our Database. Pin
shiva.kore12-Mar-10 2:24
Membershiva.kore12-Mar-10 2:24 
AnswerRe: How do we find out During Month transactions took place in our Database. Pin
Rod Kemp12-Mar-10 2:28
MemberRod Kemp12-Mar-10 2:28 
QuestionTextbox Pin
FEMDEV12-Mar-10 0:14
MemberFEMDEV12-Mar-10 0:14 
AnswerRe: Textbox Pin
ademsandeepreddy12-Mar-10 2:00
Memberademsandeepreddy12-Mar-10 2:00 
QuestionDrop Dwown list item disabling using javascript Pin
Jinoju11-Mar-10 19:21
MemberJinoju11-Mar-10 19:21 
AnswerRe: Drop Dwown list item disabling using javascript Pin
R. Giskard Reventlov11-Mar-10 22:16
MemberR. Giskard Reventlov11-Mar-10 22:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.