if (PostID =="")
{
....
}

解决方案 »

  1.   

    好像应该是ISNULL之类的函数吧,您这样写不是成了字符串??
      

  2.   

    int i=null
    if (i==null)
     i=1;
    Console.WriteLine(i.ToString());
      

  3.   

    int c=new int();//之后c=0;
      

  4.   

    错了,呵呵,int 类型无法赋值为null,因为它是值类型,不是引用类型。只有引用类型才有null的概念。
      

  5.   

    you can assign the value of the integer a initial value which a very small integer (-999).if the value of it is -999, it mean "null" ,or it has its meaning.
      

  6.   

    yanransoft的是假设吗?i的是int不是跟null同类
      

  7.   

    我想这是在数据库里面用吧,假如在数据库里边用,就用SQL语句好了,您也可一用xml保存数据,然后再访问