Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everybody,


i have web application contain master page with other aspx Pages. i want the size of the change depends on aspx to fits all its control. for example:

if i call Page1 inside Master page, all element appears in side master page frame, but when i call Page2 (that contains controls more than Page1) some controls reside in a button of the page out of master page frame!

how can i fix this problem !

thank you all
Posted

I can suggest that you can fix a height in the css class or with inline styles and also set a overflow-y:auto
 
Share this answer
 
Comments
Badour alsamaraie 28-Apr-15 6:06am    
sorry i can not understand what you mean!!
[no name] 28-Apr-15 6:16am    
you can add the inline styles when the second page loads.Now lets say you have a div whose id is div1(I am assuming it because there was nor code posted for your question) where your all the second page control load.

For this type of scenario you can add styles="overflow-y:auto;height:200px;" in your div declaration.

or else while your page loads completely from c# you can write something like below.

div1.style.add("overflow-y","auto");
Set Auto for Size properties, so that that will automatically fit to the window.
 
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