Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every one!
I have a problem, i can send data from children page to parent page (in parent page i use masterpage ) and show on lable but when i want to get value in code behind i can't get them. The value i get always the text name on my lable, i don't know why?
Could u help me?
This my javarscrip to send data to parent page from children page.
JavaScript
function AcceptList() {
    opener.document.getElementById("ctl00_ContentPlaceHodlerMain_myIdLable").getAttribute.innerHTML = a;
    close();
    }

i use .getAttribute.innerText is the same result.

[edit]Code block added - OriginalGriff[/edit]
Posted
Updated 30-Jul-11 21:08pm
v2

Try
JavaScript
opener.document.getElementById("ctl00_ContentPlaceHodlerMain_myIdLable").innerHTML = a;

or
JavaScript
opener.document.getElementById("ctl00_ContentPlaceHodlerMain_myIdLable").setAttribute("innerHTML", a);
 
Share this answer
 
Comments
Manas Bhardwaj 31-Jul-11 6:44am    
my 5!
Monjurul Habib 31-Jul-11 6:55am    
answer is ok. but is this professional approach to use rendered ID?
thanhntt89 1-Aug-11 3:06am    
thank for helping me :)
but the result is the same. I still can get value of lable in code behind :(
 
Share this answer
 
v2
Comments
Monjurul Habib 1-Aug-11 3:25am    
pleasure.
thanhntt89 4-Aug-11 6:43am    
Ok i can see the value of children page on label parent page. but i wanna get value that in code behind. I can't get it ....the result i get always the text basic on label parent page. It's not value i want from children page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900