问题补充:
不能实现,在网页里点击获取的radiobuttonlist所获取的按钮,无法使其对应的数据库信息显示在gridview中

解决方案 »

  1.   

    这题,不知道你看懂没,反正我是微懂了!!!
    点击radiobuttonlist获取对应信息,然后显示在gridview中
    应该在radiobuttonlist的SelectedIndexChanged中写方法,让后讲AutoPostBack设置为true
    怎么会写到Load事件上!!!
      

  2.   

    给radiobuttonlist加SelectedIndexChanged会吧!! 然后在设置AutoPostBack设置为true
    会吧

    protected void RadioButtonListID_SelectedIndexChanged(object sender, EventArgs e)
    {
       //自己定义cn
       string s = "select * from 房屋表 where 出租价格 = '" + RadioButtonList1.SelectedValue + "'";
                SqlDataAdapter da = new SqlDataAdapter(s, cn);
                DataSet ds_1 = new DataSet();
                da.Fill(ds_1, "房屋表");
                GridView1.DataSource = ds_1.Tables["房屋表"];
                GridView1.DataBind();
    }
      

  3.   

    http://www.cnblogs.com/LifeKingcn/archive/2012/12/19/2825120.html
      

  4.   

    #4给的代码和方法我试了,但是无法选中radiobutton
      

  5.   

    至于一闪就没有了,调试你的load事件。或则其他地方有没有清除或则重置 GridView1
    自己试吧