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 青蛙學堂 阅读(201) 评论(0)  编辑 收藏 引用 所属分类: 軟件布袋

只有注册用户登录后才能发表评论。
<2007年7月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

导航

统计

常用链接

留言簿(8)

随笔分类

随笔档案

收藏夹

青蛙学堂

最新评论

阅读排行榜

评论排行榜