Tagged: ASP.Net

Customizing the email sent by PasswordRecovery in ASP.Net

I spend most of my time working with Ruby on Rails these days. However, I still do .Net programming mainly for ThePlanCollection.com. Our password recovery system has been a bit flaky lately so I decided it was time to review the code and get it into polished condition.

I found out that I was redirecting the user to the wrong page after the password recovery and so it appeared that the password reset was failing. Big oops. While working on the code I decided that the email message were sending out sucked. Users expect more out of the web these days and we should deliver it. I found this link on customizing the password recovery control in asp.net. It is simple and to the point, but what if I want to added more customization to the message and include other dynamically generated values?

It's kind of funny how I slip into old habits when I work in the .Net world. My immediate reaction was to start searching the web for the Microsoft sanction method of passing parameters to th...

Continue Reading →

Customizing the email sent by PasswordRecovery in ASP.Net

I spend most of my time working with Ruby on Rails these days. However, I still do .Net programming mainly for ThePlanCollection.com. Our password recovery system has been a bit flaky lately so I decided it was time to review the code and get it into polished condition.

I found out that I was redirecting the user to the wrong page after the password recovery and so it appeared that the password reset was failing. Big oops. While working on the code I decided that the email message were sending out sucked. Users expect more out of the web these days and we should deliver it. I found this link on customizing the password recovery control in asp.net. It is simple and to the point, but what if I want to added more customization to the message and include other dynamically generated values?

It's kind of funny how I slip into old habits when I work in the .Net world. My immediate reaction was to start searching the web for the Microsoft sanction method of passing parameters to th...

Continue Reading →

Add Website Search Using ASP.Net and Lucene

I have read a lot about Lucene over the years and finally managed to find an excuse to play with it. I used it to add a general search to ThePlanCollection.com. Here's a detailed writeup including the code I used to implement search using Lucene on ASP.Net.

Enjoy.

Continue Reading →

hexadecimal value 0x1A, is an invalid character

All of my ASP.Net work these days is for ThePlanCollection.com so I have started publishing my problems and hopefully some solutions there. My most recent problem was the "hexadecimal value 0x1A, is an invalid character" exception when writing out xml. Click the link to get the code to fix the problem.

Continue Reading →

A Gazillion House Plans on ThePlanCollection.com

I updated ThePlanCollection.com last night. I must admit that updating when you are tired is not always the best idea, but I figure everyone else is probably asleep so there isn't really a better time. We don't really have a gazillion house plans, but sometime it feels like it and being able to manage all the house plans and the related images is not a trivial task.

Last night I updated the main styles pages so they are looking a bit better in my humble opinion. Granted, I am not a designer so I'll let you be the judge. I updated our Country House Plans, Arts and Crafts House Plans, Victorian House Plans and Luxury House Plans pages. Take a look and let me know what you think.

One of the most interesting parts of building out these new part of the system is the updates I have made to the image processing code. All the images are generated on the fly from a set of core images. There are a couple of things that I find amazing and very convenient about this. The amazing part i...

Continue Reading →

asp.net url rewrites and IIS

Here's something I am posting so I remember it. I want pretty urls for my latest ASP.Net application - The Plan Collection (2.0, reloaded, you can pick your favorite internet term). Url rewrites work fine using the web server built into Visual Studio 2005. Howerver, IIS is smart about what it lets pass through for security reasons. It doesn't like it when files don't exist and will give you a page not found error by default. You have to configure your website with a wildcard so that IIS knows to pass the request for a non-existant page on to your code. To do this open up the IIS manager. Find your website, right click, select properties. Click on the 'Home Directory' tab. Choose 'Configuration'. On the 'Mappings' tab there is an 'Insert' button. Click that and add a value that maps to the asp.net dll that you are working with. Something like this: C:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_isapi.dll

Here's the important part. Uncheck...

Continue Reading →

ASP.net tips and tricks

Scott Guthrie is the man when it comes to ASP.Net - he is in charge of it and it is basically his brain child. Those around the world that write code for the web using a Microsoft platform owe him big kudos. Anyway, when he speaks it is wise to listen. He has a list of "Tricks, Tips and Gotchas" for ASP.Net. Worth a read.

Continue Reading →

asp.net is fun again

I finally worked through most of the challenges I was faced with and I like asp.net again. It is interesting to program in several environments. I do a lot of Ruby on Rails these days and I love it. However, I have other applications that are written in ASP.Net. I have written quite a bit of Python code in the past few years - mainly in the context of Zope and Plone. If you were to ask me what the best web platform is I will still tell you that it depends. I think it is easy to get excited over the framework you love, or the one that you learned to program on. It is easy to become indoctrinated by the hype. However, at the end of the day I think it is best to stand back and look at the situation objectively rather than religiously. Over the years and through the platforms I have started to become more and more agnostic when it comes to my programing faith. Ruby on Rails may be new and exciting and it is fun to progam. It might even deserve all the hype it gets, but if it doesn't fi...

Continue Reading →

Not because I want to

For a long time now I have been trying to figure out how to update The Plan Collection to an open source platform. I find myself updating it to ASP.Net instead. ASP.Net is ok to work with. I think Ruby on Rails is better. By better I mean simplier. ASP.Net has more stuff. It comes with all kinds of bells and whistles and millions of pages of docs to read to learn how to use it. It is more flexible than Rails and I would bet that it is faster since it is compiled, sort of.

I do it not because I want to but because I have to. I think many software projects are that way. Building a brand new application is a luxury. You can do all kinds of things that you want to do. Maintaining an application is different. You do things because you have to. For example, The Plan Collection has about 90,000 pages in the Google index. We can't afford to throw that away so we need urls to stay the same. At least we need to be able to setup redirect so that they site still works with those urls. In addit...

Continue Reading →

The Plan Collection

I have spent the past few weeks working on two projects. One is brand new and very exciting - houseplans.info. I developed that site in Ruby on Rails and it uses mysql on the backend. That project took me about four weeks working a few hours in the evenings. It is a joy to work on. I compare that to The Plan Collection which I have spent the last 7 years working on. It is written in old ASP and is painful to work on. I have been updating it to ASP.Net here and there and it just isn't as much fun as working in Ruby on Rails. By fun I mean that in twenty seconds I can setup url rewrites in Rails while I spent several days testing, debugging and cussing url rewrites in ASP.Net. I'm still not done. So far I am still unable to find a way for a form to post back to the rewritten url. ASP.Net happily ignores the rewrite and sets the form postback for you and refuses to give you a way to change it.

Open source is so much better and lets me be in a happy place.

Continue Reading →

Joining the Rails bandwagon

I have worked in numerous roles as a programmer. My lot has been everything from low level USB firmware to Visual Test to ASP and then ASP.Net. Years ago, when I first saw ASP.Net I thought that I had found the best web framework in the world. I am working on a PhD (here and there). Last semester I worked on an independent study project (scrumdidilyumptiou.us). Most of the project was done over the course of a few weeks with the bulk of the work done during a meeting at the Melon Foundation. I am a programmer you can't expect me to listen to business like presentations can you?

Because everyone else was doing it I decided I would give Ruby on Rails a shot. The hype isn't hype. It's the real thing. Two weeks ago in my spare time I started a project at www.houseplans.info. Its up and running now. Two weeks. I measure my Ruby on Rails projects in weeks not months. It is an amazing framework. Tonight I find myself writing ASP.Net code. I wish I wasn't. It is power. It can d...

Continue Reading →