//要顯示的列
在後臺
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
BindShowData();
}
protected void BindShowData()
ArrayList al = new ArrayList();
string str = "";
try
str = "select 列名 from stu_info "
al = PublicClass.SQLSelect(str, 顯示項的個數 );
if (al.Count == 11)
UNameH.Text = al[0].ToString();
catch (Exception ex)
Response.Write(ex.Message);
//要顯示的列
//要顯示的列
//要顯示的列
在後臺
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindShowData();
}
}
protected void BindShowData()
{
ArrayList al = new ArrayList();
string str = "";
try
{
str = "select 列名 from stu_info "
al = PublicClass.SQLSelect(str, 顯示項的個數 );
if (al.Count == 11)
{
UNameH.Text = al[0].ToString();
}
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}