typemismatch

just a projection of my own imagination

  • You are here: 
  • Home
  • 2007 October

ASP.NET Ajax PageMethods

Posted on October 31st, 2007

If you haven’t yet used Page Methods then you’re really missing out. These allow you to create in-page web service methods that can then be called from the client.

This is a quick tip about where these methods can be embedded. It took me awhile to figure out why my newly added methods would not appear in the client javascript. I was using ASCX (user controls) and had the code in the user control code behind file. This will not work and the required javascript won’t ever get generated.

Page Methods must always be defined in the aspx.cs file!

-c

Tags: ,
Filed under .NET | No Comments »

VS 2005 Style Sheet Tip

Posted on October 29th, 2007

Some of you may already know this little asp.net secret but if you don’t enjoy :)

It appears that when an asp.net page renders due to the fact that the header element is actually being generated on the server before it is sent to the client some nifty things happen. I hope you already know that any style sheets placed in a theme folder will get added to the header automatically. This is really great but what if you want a style to be conditional?

Well, normally you’d put the css into another folder so it isn’t automatically added – for example you might use /css/ie_hacks.css or something like that. In the header you’d probably specify the css source as /css/ie_hacks.css but you can take a short cut. You can just use the style sheet name, ie_hacks.css and when the page is rendered the full path will be found.

I use this a lot with conditional IE hacks where I want a path rendered that I do not know during development since many of my site projects run mutiple clients under one site.

-c

Tags: ,
Filed under .NET | No Comments »

Why must open source always be free?

Posted on October 16th, 2007

This is something that really bugs me, it’s like the entire community has lost focus. It is great to have the source to software because you can fix issues before the vendor can and you can make products better but people/developers need to be paid for their time.

You can argue all you want that knowledge should be free and that’s fine but time is not free and it should be used wisely. I hear the same idiotic arguments for say an Outlook replacement, everyone goes on about finding an open source replacement … no – find a better product, it doesn’t have to be free.

Keep your code open and share with people but make a living doing it otherwise you’ll burn out like so many well known open source developers have. You think firefox is free? … think again.

Filed under Software | No Comments »

Kabooti Gets Going

Posted on October 15th, 2007

I guess I had the name before I really figured out what it was, I mean I knew roughly what I wanted but building something completely revolutionary doesn’t happen over night.

This system will follow the “Mafooku” style of removing user barriers and keeping to the simple styles. That kind of development takes time but I expect something mid 2008.

So I leave you with this thought for now ….

“It is not possible to create what doesn’t exist.
We must assemble what does to create what doesn’t.”

Filed under .NET | No Comments »

Be a part of Mafooku!

Posted on October 1st, 2007

I’ve launched a new service to sell online, its called Mafooku and well as you might have guessed you can find it at www.mafooku.com – users can post as many times as they like. The system is super simple and put from the ground up on .net to be extremely fast. You’ll also notice the lack of usage barriers! A good programming technique these days.

Give it a try! see what you can find.

Filed under .NET | No Comments »