Objectdatasource, gridview and custom paging

by
admin
Posted August 31st, 2006 at 11:29 am
I've spent the last couple of hours trying to work something out that boggled my mind.
I have a base4 class that I wrapped in a Dataobject in my Businesslayer.
On my page (actually in a user control) i have a gridview that binds to an object datasource and stores the list of retrieved values in the viewstate. The business object is paged server side and supports sorting.
The business object looks at it's simplest like this :
There are 2 methods for every retrieval function. the first ...
Did Teched have an impact

by
admin
Posted August 29th, 2006 at 8:21 pm
In my case I guess it did.
First of all there were the presentations on Presentation Foundation which were really cool and made me want to start playing with it right away.
Unfortunately for my playing time, currently I am in a really busy period professionally so I'll just have to stick with what I know already.
However I will start using communication foundation whenever possible as well as workflow foundation these two pieces are too useful for me not to use them.Also it made me reth...
A generic builder for unit tests

by
admin
Posted August 29th, 2006 at 11:45 am
I've been using base4 quite a lot lately
:). And obviously I like it. But anyway for unit testing i found myself writing
virtually the same builder class over and over again.
And since it is just test data that needs to be removed later it is always
very similar. I started thinking about my problem and came to the conclusion
that I could easily enough build a generic class that iterates over the object
and takes all the properties that belong to that type and not to any of the...
Aptana for writing atlas script

by
admin
Posted August 24th, 2006 at 8:25 am
I write quite a lot of javascript code these days and have been looking for a couple of months for ways to make my life easier.
Easier would mean in my opinion to get some kind of intellisense or autocomplete while writing javascript.
As it turns out in visual studio orcas these features will be available so I'll be a very happy vs orcas user i guess :). But in the meantime there is a free eclipse based IDE around aptana that let's you take advantage of autocomplete etc.
I added the a...
New Base4 CTP a must have

by
admin
Posted August 18th, 2006 at 11:12 am
I've been playing with the new base4 ctp that was released yesterday. And I must say that schema website thingy ... NICE ;-)
I had trouble working out the joins from time to time but now I just browse my schema and it will show me the syntax if i click on a onetomany relationship which is SO cool.
I'd say Alex keep doing what you're doing :D
...
Make the object datasource support relations

by
admin
Posted August 16th, 2006 at 7:43 pm
One of the shortcomings of the object datasource is that it doesn't support relations properly. It only gives you a single table view of an object if that object is a dataset or datatable.
But what about the relationships etc. Well my first choice was to create specific views etc. But I found it to be a real hassle combined with stored procedures to maintain once the project starts growing a bit.
From the dataset I want a structure that looks like my database. Nothing more nothing less. T...
The thing I re-learned again

by
admin
Posted August 15th, 2006 at 11:46 pm
I feel so stupid sometimes and today was such a day.. I'd been putting of reinstalling my pc for a while now. I had installed vista on it but my machine just isn't fast enough.
The thing I've re-learned today is when installing a pc install the virus scanner last or disable it during the install period. It shaved about 1 hour of my visual studio installation.
All in all I think that feature saves me about 6 hours over the whole install.
...
This blog has joined technorati

by
admin
Posted August 11th, 2006 at 8:19 pm
I am now listed on technorati
Technorati Profile
...
Faces for Lebanon

by
admin
Posted August 11th, 2006 at 9:00 am
A while ago I decided that I wouldn't reblog somebody else's posts. But I have to make an exception today because of what's going on in the world.
People that have the chance to meet me in person can ask me for my view on that whole situation but I don't want to write a whole book here.
As my friend Miel blogs :
Faces4Lebanon.org
seeks to demonstrate the solidarity of people with Lebanon and the Lebanese people. Millions of peopl...
User group atlas presentations

by
admin
Posted August 11th, 2006 at 8:53 am
This week I went to do a couple of presenations on atlas in the regional user groups here in New Zealand.
At first I was really nervous, so I apologise to the people in hamilton for not getting the best presenation I could give you, I even forgot some stuff that would make all the pieces fit together.
But after the first talk I started to get the hang of it, and now I regret that I can't do more talks but who knows what the future brings.
It was really interesting to see that there are...