Geeks With Blogs
ken spencer April 2011 Entries
mvc: JavaScript tags
Well, this one was fun. So my mvc app was having trouble with javascript files. Seems like if I had more than one file linked in, that only the 1st was picked up. The tags looked like so: <script src="<%=Url.Content("~/S... type="text/javascript"/> After much scratching my hair out and trying different things, I figured it out. The problem is the />. You have to end the script tag like so with </script> and not the shortcut syntax: <script src="<%=Url.Content("~/S... ......

Posted On Wednesday, April 27, 2011 2:48 PM

ios 4: Oops
Ah, its all over the news. Some years back Microsoft was getting slammed for being heavy handed and they really learned a lesson. Last week it was and still is google. And this week its Apple. Turns out ios 4 is tracking us and storing that info on our devices. And the data is there in unencrypted form. Check out this news article: This really ticks me off as I am going to buy an ipad 2 for a ......

Posted On Thursday, April 21, 2011 6:01 AM

Sending Email: Windows 7 and sending email from an app
Today I was working on the mvc app I am building for a customer. We need to send email from the app so I used the feature in .Net. As part of this, I need a Windows 7 smtp server. So I found the smtp4dev app on codeplex. I found it on this nice blog http://social.technet.micro... Check out the notes titled “Mikeyyyy, this is how I made it work on Windows 7 64-bit with IIS 7.5 I hope it helps.” a good ways ......

Posted On Wednesday, April 20, 2011 3:36 PM

MVC: Problems with links (images and css)
I had a major problem this week with an MVC app. All of a sudden, all the styles and images stopped working. Man, I spent hours on this trying all sorts of stuff. I setup a new project and stuff worked. So what the heck is up. Then I started playing around one item at a time to figure out what was going on. Eventually I thought, hm, I was working on debugging routes. So lets try the global.asax file items. Well, a line of code was lurking there that I picked up from the route debugger sample ( ......

Posted On Friday, April 15, 2011 3:44 PM

MVC: Route Debugging
Today I was banging my head against urls and route debugging. I found this excerpt that’s pretty cool: Basically you can use this to debug your routes. I also found a short article that shows how to detect debug mode in VS. I plan on using these this to automatically switch in the handler above. A generic list of the routes that can be fed to either the standard handler or release handler looks like a great option. And I might just ......

Posted On Tuesday, April 5, 2011 3:39 PM

Copyright © xamlnotes | Powered by: