如题

解决方案 »

  1.   

    google、百度上搜一下,有下载的。
      

  2.   

    <%
    Function Ip2Str(cIp)
    Dim str1,str2,str3,str4
    Dim cIp_Temp
    if cIp="127.0.0.1" then cIp="192.168.0.1"
    str1=left(cIp,instr(cIp,".")-1)cIp_Temp=mid(cIp,instr(cIp,".")+1)
    str2=left(cIp_Temp,instr(cIp_Temp,".")-1)cIp_Temp=mid(cIp_Temp,instr(cIp_Temp,".")+1)
    str3=left(cIp_Temp,instr(cIp_Temp,".")-1)
    str4=mid(cIp_Temp,instr(cIp_Temp,".")+1)if isNumeric(str1)=0 or isNumeric(str2)=0 or isNumeric(str3)=0 or isNumeric(str4)=0 thenelse
    Ip2Str=cint(str1)*256*256*256+cint(str2)*256*256+cint(str3)*256+cint(str4)-1
    end ifend Function
    %>
    这段代码 是 asp 代码 我看不懂  是用来将 正常的 IP地址 转换成 IP 库那种  ip1 ip2 字符串
    的转换函数  
    谁能 帮我翻译成 c#的代码 或者提供一个  我也给分