【发布时间】:2011-12-19 09:09:03
【问题描述】:
我是使用 asp.net 的新手,我收到“从字符串“ACECATN000001”到类型“整数”的转换无效的错误。”谁能帮我解决这个问题?在此先感谢:D
If lbl_productcatcode.Text = "ACECATN000001" Then
txt_productcode.Text = Format(CInt(rdr.Item(0).ToString) + 1, "1000000")
End If
End If
cmd1.Connection.Close()
End Sub
【问题讨论】:
-
字符串是字母数字......整数是数字......你想用那个字符串做什么?您不能将字母数字转换为数字。
标签: asp.net