cookies
问个很菜的问题啊,
Request.Cookies["studentID"].Value 获取 cookies值时,Request.Cookies["studentID"].Value是string类型的,怎么转换成int类型啊。studentID保存的值是int型的。
[解决办法]
Convert.ToInt32()
Int.Parse();
发布时间: 2013-04-12 18:33:11 作者: rapoo
cookies
问个很菜的问题啊,
Request.Cookies["studentID"].Value 获取 cookies值时,Request.Cookies["studentID"].Value是string类型的,怎么转换成int类型啊。studentID保存的值是int型的。
[解决办法]
Convert.ToInt32()
Int.Parse();