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?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Gurvinder Pal SinghConnect With a Mentor Commented:
check this page

I have no experience in VB.net, so Sorry, can't suggest anything else.
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
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?.
eehunter3Connect With a Mentor Author Commented:
Back in a few .... Taking a quick tutorial in javascript and reviewing the link you have suggested.
eehunter3Author Commented:
Made a mistake ... did not mean to credit myself with providing answer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.