本文介绍了动态更改页面大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我有一个2 gridview的页面,页面加载时可见性为false。
现在当用户点击show时按钮那些gridview将显示在屏幕上。
我的问题是每当网页视图在页面中可见时页面的大小超出我的背景....
有没有办法在网格填充时更改页面大小...
我的意思是页面的最大高度取决于几个onclick按钮事件?
提前谢谢.. :)
Hello,
I Have a page with 2 gridview which visibility is false on page load.
Now when a user click show button those gridview will be shown on the screen.
My problem is whenever the gridviews are visible in page the size of the page exceeds my background....
Is there any way to change the page size whenever the grid populates...
I mean the max height of the page will depends on few onclick button event?
Thanks in advance.. :)
推荐答案
< - html>
<--html>
Main .cs:
MainID1.style.add(height,800px);
Main.cs:
MainID1.style.add("height","800px");
Thanks For Try To help me !!! I Have solved this Myself..
In ASPX Page: Add Runat="Server" on the control
and In CS : find the control and add style
Ex:
Main.aspx:
<div id="MainID1" runat="server">
<--html>
Main.cs:
MainID1.style.add("height","800px");
这篇关于动态更改页面大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!