this.Month.Items.Add(new ListItem("January","1")
解决方案 »
- 郁闷..repeater与checkboxLister求解..
- 急问: 有关css的问题 页面1链接跳出其他页面,页面1的字体变大怎么处理?
- 动态隐藏表格和单元格
- socted连接接收的数据为什么超过1024就接受不了?
- 请苏州的程序员朋友进来看看.
- Session_End的问题
- .net测试
- 很奇怪 不知道点错哪了 本来图片都是正常大小的 现在都缩小了
- 关于dataReader的问题!!!
- 在win2003 server的vs.net 2003上新建web应用程序出现下列提示,实在是搞不定 :(
- 怎样在一个栅格内显示多个表的内容(急!!!)
- 有没有下载文件不出现保存对话框而直接保存到特定目录的代码?
public class DropDownListData
{
private string _text;
private string _value; public TabItem(string newText, string newValue)
{
_text = newText;
_value = newValue;
} public string Text
{
get { return _text;}
set { _text = value;}
} public string Value
{
get { return _value ; }
set { _value = value; }
}
}//帮定数据
ArrayList DropDownListDatas= new ArrayList();DropDownListDatas.Add(new DropDownListData("January", "1" ));
...
DropDownList1.DataSource = DropDownListDatas;
DropDownList1.DataBind();
public class DropDownListData
{
private string _text;
private string _value; public DropDownListData(string newText, string newValue)
{
_text = newText;
_value = newValue;
} public string Text
{
get { return _text;}
set { _text = value;}
} public string Value
{
get { return _value ; }
set { _value = value; }
}
}//帮定数据
ArrayList DropDownListDatas= new ArrayList();DropDownListDatas.Add(new DropDownListData("January", "1" ));
...
DropDownList1.DataSource = DropDownListDatas;
DropDownList1.DataBind();
for (int i=1;i<= 12; i++)
{
ListItem item = new ListItem(strMonth[i],i);
this.Month.Items.Add(item);
}