cookies解决方法
cookies
问个很菜的问题啊,
Request.Cookies["studentID"].Value 获取 cookies值时,Request.Cookies["studentID"].Value是string类型的,怎么转换成int类型啊。studentID保存的值是int型的。
------解决方案--------------------
Convert.ToInt32()
Int.Parse();
问个很菜的问题啊,
Request.Cookies["studentID"].Value 获取 cookies值时,Request.Cookies["studentID"].Value是string类型的,怎么转换成int类型啊。studentID保存的值是int型的。
------解决方案--------------------
Convert.ToInt32()
Int.Parse();