View Single Post
  #9 (permalink)  
Old June 15th, 2009, 01:45 PM
Lee Dumond's Avatar
Lee Dumond Lee Dumond is offline
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Sorry Phil, I'm not following you.

DataItem is not going to be null as long as the item type is ListViewItemType.DataItem, and we are checking for that.

And if the item type is ListViewItemType.DataItem, prodtype will never be null as long as there is data in that field.

Not sure where you are getting the "ItemCreated is also raised before Page_Load on each request" thing. Certainly not on MSDN.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}