vs2008--dropdownList

    protected void Page_Load(object sender, EventArgs e)     {          if(Session["id"] == null)         {             //一般应跳转页面         }         int id = Convert.ToInt32(Session["id"]);          if (!IsPostBack)         {              //这里绑定DropDownList             DropDownList1.Items.Add(new ListItem("aa", "1"));             DropDownList1.Items.Add(new ListItem("bb", "2"));         }          DropDownList1.SelectedValue = id.ToString();     }

posted on 2012-02-28 11:03 青蛙學堂 阅读(172) 评论(0)  编辑 收藏 引用 所属分类: 軟件布袋

只有注册用户登录后才能发表评论。
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

导航

统计

常用链接

留言簿(8)

随笔分类

随笔档案

收藏夹

青蛙学堂

最新评论

阅读排行榜

评论排行榜