close

foreach (Control c in Page.Form.Controls)
{
if (c.GetType().ToString() == "System.Web.UI.WebControls.TextBox")
{
TextBox b = c as TextBox;
b.Text = "";
}
if (c.GetType().ToString() == "System.Web.UI.WebControls.ListBox")
{
ListBox d = c as ListBox;
d.SelectedIndex = 0;
}
}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 ylw1125 的頭像
    ylw1125

    程式搜集分享精靈

    ylw1125 發表在 痞客邦 留言(0) 人氣()