解决方案 »

  1.   

    你的ui用的是jquery的控件?还是webForm的插件?
    你使用的控件应该是不保持选中状态的,可以尝试使用ajax来实现不刷新效果
    PS:我还是不知道这两个按钮式干嘛用的
      

  2.   

    恩,现在知道为什么下拉框实现不了显示图片和简介的问题了,好像是因为我把下拉框放在了updatepanel中,为什么这样做下拉框的不到后台传的值呢?也就是说:
     protected void Get_Click(object sender, EventArgs e)
            {
                int j = schoolName.SelectedIndex;
                if( j!=0){
                title.Text = schoolName.Items[j].Text;
                string cmdi = " select ImageUrl from schoolImage  where IDs =" + j;
                SqlDataAdapter da = new SqlDataAdapter(cmdi, conn);
                DataSet ds = new DataSet();
                da.Fill(ds);
                string path = ds.Tables[0].Rows[0]["ImageUrl"].ToString();
                picture.ImageUrl = path;            string cmdjj = "select jianjie from schooljianjie where IDs=" + j;
                SqlDataAdapter dajj = new SqlDataAdapter(cmdjj, conn);
                DataSet dsjj = new DataSet();
                dajj.Fill(dsjj);
                string str = dsjj.Tables[0].Rows[0]["jianjie"].ToString();
                jianjie.Text = str;
                }
            }
    这些代码放在学校下拉框的onchangeIndex事件中
      

  3.   

    runat=“server”
    看得我头晕
      

  4.   

    嘿嘿,表达能力有点差,虽然没帮到我,还是谢谢各位,找到方法解决了,用的iframe标签,把那些刷新的下拉框按钮什么的放到子页面中就行了!多谢各位