Click here to Skip to main content
16,007,885 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page in my application which is divided in to four frames (divs? iFrames?). I defined a hidden variable in the first frame the id of which is "fra1". I want to access this hidden variable in my main page in which we... (and it tails off here).
Posted
Updated 31-Mar-10 5:16am
v2

1 solution

If you want to access it through the code-behind, then
<asp:HiddenField ID="fra1" runat="server" Value="Foo"/>

can be accessed exactly like any other ASP control. You can even change the value on postbacks.

If you are using JavaScript, your best bet would be to use document.getElementById('elementId'). This is one of the basic JS methods, so there are lots of references on the web.
 
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