-2
我在这条线的错误说“未将对象引用设置到对象的实例”对象引用未设置到对象
Me.ShipTextValue.Text = IIf(String.IsNullOrWhiteSpace(orderHeader.ShippingText), String.Empty, orderHeader.ShippingText.Replace(Environment.NewLine, "<br />"))
的实例,但是,我不认为有一个在这一行的错误,任何人都可以帮助我看看是否有任何错误在该行?
非常感谢
可能重复[什么是NullReferenceException,以及如何解决它?](http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-doi-i-fix -it) –
尝试'If'而不是'IIf'。查看[this](http://stackoverflow.com/questions/28377/performance-difference-between-iif-and-if)以获取更多关于差异的信息。 – Bugs