c#.net中把代码这样写在Page_Load定义外面好吗
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingS...
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class ManageCover : System.Web.UI.Page
{
Slide slide = new Slide();《-----------我是说这个,如果不是这个页面都用它的这样写好吗,还是写在Page_Load里面好
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["id"] != null)
{
///
}
}
} 展开
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class ManageCover : System.Web.UI.Page
{
Slide slide = new Slide();《-----------我是说这个,如果不是这个页面都用它的这样写好吗,还是写在Page_Load里面好
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["id"] != null)
{
///
}
}
} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询