我有一個面板中的知名度=在.aspx
檔案造假,在我的代碼設置的知名度一些點= true.but 問題是:當我追蹤代碼時,我發現可見屬性仍然等於假,儘管我將它設置爲true。 我的面板的名字是:pnl_DetailsGeneral
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (RadioButtonList1.SelectedValue == "2")
{
drp_Week.Enabled = false;
gv_Details.Visible = false;
panel_rmv.Visible = false;
pnl_DetailsGeneral.Visible = true;//Here when i put a break point and after setting visible to true i find `pnl_DetailsGeneral.Visible = false`
gv_DetailsGeneral.Visible = true;
BindGridGeneral();
}
else if (RadioButtonList1.SelectedValue == "1")
{
drp_Week.Enabled = true;
gv_Details.Visible = true;
gv_DetailsGeneral.Visible = false;
pnl_DetailsGeneral.Visible = false;
if (drp_Week.SelectedValue != "-1")
{
BindGrid();
}
}
}
什麼可能導致這個問題?
你的RadioButtonList上有AutoPostBack =「true」嗎? – 2011-04-20 10:53:55