Dec 27 2009

My Tweets on 2009-12-27


Dec 20 2009

My Tweets on 2009-12-20

  • Back to NYC. Got an exit row, but the seat is like a rock. My ass will not like these next 7 hours… #
  • Attn retards: u don’t have to pull the phone away from your ear when u want to talk into it. WTF?! #
  • English mutha-fucka! Do you speak it?! #

Dec 13 2009

My Tweets on 2009-12-13


Dec 10 2009

Loop through PagedDataSource without binding

I hate binding to data list because they add in a ton of extra code that is a bitch to clean up. I like handling and manipulating the raw data and outputting it exactly as I like. So, my dilemma with PagedDataSources is that you need to bind them to a data list to get the data (to the best of my knowledge).

Here’s how I got around it:

1. Fill up your PagedDataSource with data
2. Bind it to a data list (ex: theDataList)
3. In the Data List on the aspx page, pump all the data back to the .vb page into a function.
4. Create a literal on the .aspx page (ex: litOutput)
5. In the function that is used to marshal the data, append all the output to the literal on the aspx page (litOutput.Append(strOutput))
6. After the command to connect the PagedDataSourse to the data list (theDataList.DataSource = objDps / theDataList.DataBind()), make it not visible:
theDataList.Visible = False

BAM! You now have all your data in the literal and the data list with all it’s crappy ass <br/>’s and <span>’s are no where to be found =)

.: Adam


Dec 6 2009

My Tweets on 2009-12-06

  • Tix to Milan purchased. T minus 42 days and counting =) #
  • Blarg. #
  • just joined a video chat with 11 other people at http://www.tinychat.com/Bodymodorg #tinychat http://tinychat.com #
  • Just wanted to share my thoughts, ” … ” not much goin on up there right now #
  • It’s been a while since I’ve closed a bar. Feels like home =) I think I’ll get another drink #
  • Holy he’ll m drunk and haven’t had a night like this in a looooong time! Lol. Awesor! #