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".

Published Tuesday, December 07, 2004 12:12 PM by kenlin
Filed under:

Comments

# re:IsNot....IsNotPostBack??

Friday, April 15, 2005 2:25 PM by TrackBack
^_^,Pretty Good!

# re:IsNot....IsNotPostBack??

Wednesday, May 18, 2005 6:42 AM by TrackBack
^_~,pretty good!csharpsseeoo

# re:IsNot....IsNotPostBack??

Thursday, June 16, 2005 2:35 AM by TrackBack
IsNot....IsNotPostBack??ooeess

# re: IsNot....IsNotPostBack??

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

# re:IsNot....IsNotPostBack??

Thursday, July 21, 2005 6:22 PM by TrackBack
IsNot....IsNotPostBack??ooeess

# re:IsNot....IsNotPostBack??

Tuesday, August 02, 2005 7:48 PM by TrackBack
IsNot....IsNotPostBack??ooeess

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Powered by Community Server (Commercial Edition), by Telligent Systems