Yesterday I wrote about some photos we took for a challenge to win laser-etched beef jerky. Well, we were successfull! They even gave them a name: The Basement Series. I’m waiting to see the other submissions, but there hasn’t been too much activity. Anyone who’s reading this and thinking about it – JUST DO IT. It was hilarious fun.
I’ll get some photos of the stuff when I get it in. I’m thinking they’ll be A FIRE GIANT cards. Angelo wrote about it, too. I also think there was a segment of it on G4’s Attack of the Show (which I don’t get anymore, boo expensive cable).
Today I spotted a weird yet intriguing contest on tor.com, saying they’ll give business cards etched into beef jerky using lasers to the first 15 people who photograph a live recreation of one of three Frank Frazetta fantasy paintings. And guess what, we did it. Hit the jump to for pictures and more info.
Read the rest of this entry
I recently had an issue where I converted some User Controls to code-behind model, and moved them to another directory. I then found I couldn’t reference them in code. After a post on the ASP.NET forums, I came to a solution, and devised the rules as to how you can reference a User Control in code:
- The control needs to have a ClassName tag in the <%@ Control %> tag (actually, I think if it doesn’t you’ll use the generated class name?)
- The page has to use a <%@ Reference %> tag in the .aspx file to reference the control
- If page uses a code-behind file, the namespace “ASP” contains all controls reference with the <%@ Reference %> tag. If it’s inline code, there’s no need for this.
If your page is inline code, you don’t have to worry about the ASP namespace. The ASP namespace is a dynamic namespace that contains the controls you referenced with the <%@ Reference %> tag in the markup file.
I hope this helps anyone having problems referencing User Controls by classname in their code. I searched for quite a while and I only got answers like “don’t use code-behind if you want to do that” or “have all your controls implement a Interface and reference them by that interface”.
Please post any comments or questions. I check my email/comments daily, so a response should be pretty quick (usually about 1 business day maximum. If I’m at a computer working, I usually respond right away). You can also contact me by email.