VB MVP KenLin @HKSAR

Loving Microsoft Technologies.

Recent Posts

Tags

Community

Email Notifications

.NET Related

Other MVP

My Blogs in HK

.NET Insider

Archives

IsNot....IsNotPostBack??

IsNot Keyword

Although it hasn't been a terrible burden in the past, determining whether an object reference is not the same as another object reference has historically involved a somewhat clumsy construct:

If Not (obj Is Nothing) Then

Visual Basic 2005 adds the IsNot keyword, making it possible to rewrite the previous example:

If obj IsNot Nothing Then

Sometimes, it's the little things that make a big difference. However, I am also looking forward another one for ASP.NET, which is:

If Not IsPostBack Then

We always use this property to check if this is the first time the web page is being processed. Why not just simply adding another one "IsNotPostBack".

Posted: Tue, Dec 7 2004 12:12 by kenlin | with 6 comment(s)
Filed under:

Comments

TrackBack said:

^_^,Pretty Good!
# April 15, 2005 2:25 PM

TrackBack said:

^_~,pretty good!csharpsseeoo
# May 18, 2005 6:42 AM

TrackBack said:

IsNot....IsNotPostBack??ooeess
# June 16, 2005 2:35 AM

kenlin said:

IsNotPostBack is there for ASP.NET 2 (visual studio 2005 supports it, but it's not in beta)
# July 12, 2005 4:33 AM

TrackBack said:

IsNot....IsNotPostBack??ooeess
# July 21, 2005 6:22 PM

TrackBack said:

IsNot....IsNotPostBack??ooeess
# August 2, 2005 7:48 PM