VS错误提示(64): Cannot convert type 'string' to 'int'
-------------------------------------------------------if ((int)DropDownList1.SelectedValue=1)
{
...............
}
else if((int)DropDownList1.SelectedValue=2)
{
................
}
else if((int)DropDownList1.SelectedValue=3)
{
.................
}
--------------------------------------------------------数据类型转换不成功,是不是if语句内不让转换啊,怎么改才行?谢谢
-------------------------------------------------------if ((int)DropDownList1.SelectedValue=1)
{
...............
}
else if((int)DropDownList1.SelectedValue=2)
{
................
}
else if((int)DropDownList1.SelectedValue=3)
{
.................
}
--------------------------------------------------------数据类型转换不成功,是不是if语句内不让转换啊,怎么改才行?谢谢
解决方案 »
- aspx页面上点击button后,下载服务器端某个文件,该怎么实现啊
- window.location.href='http://www.baidu.com'; 就不起作用了
- 关于多文件上传的问题
- 100分问一个关于图片验证码输出时设置Seesion的问题
- treeview动态添加节点离中心线太远了
- 关于架设IIS服务器的问题
- 请高手讲讲,串行化有什么用处?
- asp.net中,A页面能否调用并且执行B页面里的某个函数
- 则么在点击server端控件时,提示"是否确认"的提示,否的话就不提交
- 怎么样在 Datagrid里实现js:window.open()功能?
- css 布局 请看图片.....
- 在Windows server 2003下安装vs.net 2008求助
{
...............
}
else if(int.Parse(DropDownList1.SelectedValue)==2)
{
................
}
else if(int.Parse(DropDownList1.SelectedValue)==3)
{
.................
}
{
...............
}
else if(int32.Parse(DropDownList1.SelectedValue)==2)
{
................
}
else if(int32.Parse(DropDownList1.SelectedValue)==3)
{
.................
}