protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
gg.Attributes.Add("style", "table-layout:fixed");
bindGg();
}
{
if (!IsPostBack)
{
gg.Attributes.Add("style", "table-layout:fixed");
bindGg();
}
本文介绍了一个ASP.NET页面的Page_Load事件处理方法,在该方法中检查了页面是否为初次加载,并为网格控件(Grid)设置了固定布局样式及绑定数据的操作。