Programming, ASP.NET, C#, JavaScript and Computer Life
Ralph Whitbeck
Home
Contact
Subscribe
Tuesday, April 25, 2006
Nested Repeater Control Update
Back in January I posted about a
Expanding Nested Repeater control
I had developed. Well I ran into some difficulties with it right after I launched it...actually the problem was always there I just didn't realize it.
For some reason that was unknown to me at the time the sub menu was skipping every other row of data that was getting returned from the database. I spent hours looking at it and was literally beating my head trying to figure it out.
I left it alone for a while. And I looked at it again last night. Stepping through the code for the first time it hit me right in the face. As I was going through the
repSubMenu_ItemDataBound
method I realized that I was not testing for e.Item.ItemType == 'AlternateItem' I was only testing for e.Item.ItemType == 'Item'.
I just needed to alter my if statement to check to see if Item
OR
AlternateItem. I am glad I finally fixed it but holy crap that frustrated the hell out of me.
It's funny though how fast I found the bug after I set it aside for a while. That always seems to happens.
Tuesday, April 25 2006 at 7:17 PM |
Comments [1]
Tags:
Programming
Friday, July 20, 2007 3:18:13 AM (Eastern Daylight Time, UTC-04:00)
asdas
Mandeep Handa
Name
E-mail
Home page
Remember Me
Comment (Some html is allowed:
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u
)
Enter the code shown (prevents robots):
Blog Posts by:
Recent
Month
Category
Search
Currently Viewable:
My Twitter Updates
View Twitter Page
Contact Ralph
E-Mail
Click icon to send me e-mail.
Instant Messenger
AIM:
RedWolves2
Social Networks
Twitter:
http://twitter.com/redwolves
Last.fm:
http://last.fm/user/RedWolves/
Close
Subscribe
Main Feed
Category Feeds
BrandLogic
Entertainment
Fitness
How-to
Interesting Links
Mussings
Personal Finance
Politics
Programming
Simple Shadow
Sports
Sushi
Technology
Other feeds
Twitter updates: RedWolves
MediaGab Forum posts
Close
Blog Posts
Recent
jQuery Plugin - Simple Shadow
Adding link separators to a unordered list using jQuery
How to target="_blank" a link while keeping it XHTML compliant with jQuery
Book Review: "Smart & Gets Things Done" by Joel Spolsky
My first JSON Implementation
Gary Vaynerchuk @ Tech Cocktail Chicago
Google I/O 2008 - Day 1
Kings of Code 2008
Close
Blog Posts
Month
August, 2008 (1)
July, 2008 (1)
June, 2008 (3)
May, 2008 (4)
April, 2008 (4)
February, 2008 (1)
January, 2008 (2)
November, 2007 (4)
October, 2007 (5)
July, 2007 (2)
May, 2007 (2)
April, 2007 (1)
February, 2007 (5)
January, 2007 (16)
December, 2006 (5)
November, 2006 (3)
October, 2006 (10)
September, 2006 (6)
August, 2006 (3)
July, 2006 (17)
June, 2006 (16)
May, 2006 (13)
April, 2006 (4)
March, 2006 (9)
February, 2006 (10)
January, 2006 (23)
December, 2005 (3)
Close
Blog Posts
Category
BrandLogic
Entertainment
Fitness
How-to
Interesting Links
Mussings
Personal Finance
Politics
Programming
Simple Shadow
Sports
Sushi
Technology
Close