dynamically get master page div dimensions

I have a DIV wrapper incorporating the various controls on and asp.net master page. I'd like to access the DIV height from the content page and programmatically change that height prior to pre-rendering the page. Is this doable?
eehunter3Asked:
Who is Participating?
 
Gurvinder Pal SinghConnect With a Mentor Commented:
check this page
http://www.w3schools.com/jsref/dom_obj_style.asp

I have no experience in VB.net, so Sorry, can't suggest anything else.
0
 
Gurvinder Pal SinghCommented:
Yes, it is doable. You just need to get the Id of that div, and then you can get or set its height

alert( document.getElementById("divId").style.height ); //getting the height
document.getElementById("divId").style.height = "100px"; //setting the height
0
 
eehunter3Author Commented:
I think this might work but I am not familiar with javascript. Is there a VB.NET counterpart? Or can you be a little more explicit as to what javascript code goes on the master page and what goes on the content page to access the DIV's properties?.
0
 
eehunter3Connect With a Mentor Author Commented:
Back in a few .... Taking a quick tutorial in javascript and reviewing the link you have suggested.
0
 
eehunter3Author Commented:
Made a mistake ... did not mean to credit myself with providing answer.
0
All Courses

From novice to tech pro — start learning today.