Click here to Skip to main content
15,910,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I want to get the value of particular control in the opend site,
hw can i achieve this, by using javascript or any thing

i tried with the following code but its showing acces denied

C#
var dhlWin = window.open("http://www.sitename.com", "dhltrack", "height=660  width=755");
            //dhlWin.opener = win0;
            var a = dhlWin.document.getElementById("lblSessionMessage").value;



tx in advance
Posted
Updated 8-Aug-11 22:04pm
v3

1 solution

Try this,

C#
var dhlWin = window.open("http://www.sitename.com", "dhltrack", "height=660  width=755");
            //dhlWin.opener = win0;
            var a = dhlWin.document.getElementById("<%= lblSessionMessage" %>;).value;



I am assuming the lblSessionMessage is server control :)
 
Share this answer
 

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