Coding

Image button found guilty of not being valid xhtml horror!!!

The .net image button seems so innocent but a trip over to w3c.org and the html validator soon exposes the terrible truth. Prepare yourself for this, sit down, have a large brandy ready… It renders border=”0″ even though you haven’t put one in there yourself! try it! Put any xhtml 1.0 transitional site into the validator:

http://validator.w3.org/

And watch in utter horror while your site is rejected as a bad example to kids everywhere.

So what is going on here? And is there anyway out?

Well after some digging I found an excellent article:

http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/ac098c63-61ff-4b53-b5ad-72cb2eb0f7f2

It turns out the validator is unrecognised as a browser type to asp.net and so is presented with html 4.0 instead of xhtml, hence the border=”0″ debarkle.

Is there a workaround? Yes there is either don’t use image buttons or put this in your web.config:

<browserCaps>
<
case match=W3C_Validator*>
TagWriter = System.Web.UI.HtmlTextWriter
W3CDomVersion = 1.0
</case>
</
browserCaps>

A solution to a weird problem, but necessary if like me you want that green tick :-)

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Popularity: 1% [?]

Coding

Flash Video not running on IIS 6 windows server 2003

Seen this one before but while chatting with some (tech) friends I discovered most seemed to think that this should just work out of the box, well unfortunately it doesn’t. But adding support on you windows driven website isn’t that hard, just a few short steps. So I thought it might be useful to explain here:

You need to add the .flv MIME type to IIS:

First click on the site to configure in IIS, right click – select “Properties”.

Under HTTP Headers Tab, select “File Types” button under the MIME Map section and select “New Type”

Lastly Type “.flv” as the associated extension and “video/x-flv” as the content type and Select “OK”

There you have it, flash videos should now work on that site. See you later

Cheers
Dave

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Popularity: 13% [?]

Coding, useful

SQL Server 2008 finally we can script data

I was at the UK launch of SQL Server, but a lot of that event seemed to focus on some very niche features, new location type data, the usual better performance stats and better reporting facilities.

While these are great, I dispair at the loss of the open table, now we open top 200 for editing. I understand that the open table was not efficient but it was handy when something has gone wrong at the 11th hour; so why not just give both options? you can do the top 200 on a production machine, but use the open table where you need to check out all the data.

I have been jeolous of mySQL for a while now, they had script objects and data; this was something I used to use in the 80′s with Artemis (awsome project management software) so disapointed that it didn’t exist in SQLServer. But now in SQL Server 2008 it’s there!!!! on the database name in the tree control select tasks/generate scripts. The wizzard take you through what you want select data in the wizzard and BINGO !  You get the structure of the database and the data, in a .sql file (text file) this is usually a fraction of the size of a database backup and as it’s in text format is really difficult to corrupt or have other problems.

Life is indeed great again!

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Popularity: 2% [?]

Internet

Dave working with Neil Read

I’ve been working with Neil Read this week, we’ve come up with some revolutionary social networking techniques to promote websites, watch this space…

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Popularity: 2% [?]

japan

Hotel Spa and Ueda old town

Don't drink and drive

First let me just say "Don't drink and drive!" no shock horror here, just a plain message in a fun style.

the hotel

The hotel

Waiting to goto the spa

Waiting to goto the spa

The kids are impatient

The kids are impatient

Austin escapes!

Austin escapes!

We went to a hotel spa in Komoro, it was much posher than the public spa but a lot smaller. Granda managed not to get lost or lose his clothes this time! For obvious reasons I didn’t take any photos there as we’re naked again :-) Afterwards we had lunch which was a Chinese banquet – very nice i especially liked the noodles. Not sure why I didn’t take photos of that, maybe just focusing on the food :-) Can’t be taking photos all the time.

This is ueda old town, it's much more cheerful that Komoro old town with lots of small craft shops.

This is ueda old town, it's much more cheerful that Komoro old town with lots of small craft shops.

Lovely old shops

Lovely old shops

Another Sake shop, this one has been going 300 years!

Another Sake shop, this one has been going 300 years!

This is a tea room

This is a tea room

it's very small inside, just room for one

it's very small inside, just room for one

These owls are a local symbol, we see them everywhere

These owls are a local symbol, we see them everywhere

dolls and sake, theres a pattern beginning to emerge

dolls and sake, theres a pattern beginning to emerge

more cute owls

more cute owls

This shop seems to specialise in old boxes and pieces of wood - how do they survive?

This shop seems to specialise in old boxes and pieces of wood - how do they survive?

They call it a town, but it's really just one street, still looks lovely

They call it a town, but it's really just one street, still looks lovely

Another owl, I told you they were everywhere

Another owl, I told you they were everywhere

Trees: on the roof!

Trees: on the roof!

A wood carving workshop

A wood carving workshop

bears?

bears?

Mainly carved blocks and stamps and cards, the bears outside were misleading

Mainly carved blocks and stamps and cards, the bears outside were misleading

Small shrine

Small shrine

Water feature

Water feature

Strange art

Strange art

More strange art

More strange art

this looks like a chinese terracotta warrior

this looks like a chinese terracotta warrior

traditional noodle shop

traditional noodle shop

Granda takes a well earned rest

Granda takes a well earned rest

another water feature, this one made the most beautiful sound

another water feature, this one made the most beautiful sound

the river goes straight thru ueda old town

the river goes straight thru ueda old town

Cotton plants

Cotton plants

Christian artifacts embeded in blocks of rock! No idea what it means.

Christian artifacts embeded in blocks of rock! No idea what it means.

anyone know why they are embeded into rock?

anyone know why they are embeded into rock?

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Popularity: 6% [?]

Content

Stay in contact!

Email Dave Riley
Dave Riley's Linkedin Profile
Dave Riley's Facebook Profile
Dave Riley's Twitter Profile
Dave Riley's Plaxo Profile