追求新生活 名字2008

活着的意义

2008年6月20日

强制转换和类型转换

摘要: tt=(int)str;看行不行如果不行就再看有没有xxx.ToString()或者xxx.To xx 实在不能转换则可以用System.Convert.ToInt32(TextBox3.Text),例如把TextBox3.Text字符串转换为整型数字. 阅读全文

posted @ 2008-06-20 14:34 pyman 阅读(255) 评论(0) 推荐(0) 编辑

vs2003如何获得ip地址和主机名

摘要: 代码: string s_ip; if(Request.ServerVariables["HTTP_VIA"]!=null) s_ip=Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); else s_ip=Request.ServerVariables["REMO... 阅读全文

posted @ 2008-06-20 10:59 pyman 阅读(490) 评论(0) 推荐(0) 编辑

导航