Friday, August 24, 2007

Include Files

This wasn't the first time I've created a web site from scratch. It was my time first, however, transferring XHTML files to an ASP.NET developer for publishing the site.

The way I go about creating a web site, - let's say a web page in this instance - is designing the comp or mockup in Photoshop. Then when this is approved, I start developing the page in Dreamweaver using XHTML and CSS. When this is approved and tested, it goes live. I'm really big on web standards, such as using XHTML 1.0 Transitional, ALT attributes for images, semantic markup, etc. So I try to stay on top of these things to let everyone view the web page properly with few or no errors. This reminds me that I should redo my own web site...

Anyways, so I develop the page in XHTML and CSS and zip everything together, images also, and send the .zip file to the .NET developer. There's a problem. The developer wants the XHTML file to be broken up into .inc files. What's an .inc file? I ask my husband, whose also an ASP.NET developer with 3 Microsoft certifications in .NET development, what an .inc file is. His answer was, "I can't believe people are still using these! This is old technology! I used to use .inc files, but that was a long time ago." I was shocked.

So, back at work I create these .inc files of the web page, along with the CSS included.

For those of you who don't know what an .inc file is, include file - it's a file, just like .htm or .xml - and it was used to store content information for web pages. A master page is created to pull these inc.files when the information is requested. This makes sense and this is how a master page works, but the content pages should be .aspx files - not .inc files. With .inc files, private information can be exposed. With .aspx files, this information is safely stored. Read more from W3C.

Back at work again, I take the time and cut up my beautiful HTML pages into .inc files as this .NET developer had requested. I even asked about the .inc files and why they were being used. The reply was that the .NET developer wasn't using the .inc files. Then why am I creating them!?! What a waste of time for both of us!

I stopped creating them since the .NET developer wasn't using them. I just sent .zip files with the XHTML, CSS, and images of the web page.

No comments: