Web Dev Matters and Me

Web Development Matters - HTML, XML, C#, .NET, AJAX/Javascript(jQuery), CSS, XML-XSLT

ME - LIFE,Philippines, Tokyo, ECE, PhilNITS/JITSE,情報処理, 日本語

things about Philippines, gaming, C# development and web development, how to make money in stock trading

Web Dev Matters and Me

Global.asax events are not triggered for static files

One of the great thing to handle dynamic website is to manipulate the output of the page by request. From writing handlers, modules or simply handling the Global.asax events. But just when you had that idea, something will discourage you to prevent using that idea and consider doing an even more tiring (and probably messy) way of doing.

To be able to handle static files in global.asax, we have to change something in the IIS. For 6 and below, it can be done on the server by checking the property of your website. On the application configuration (under home directory tab, click configuration button and the handler tab should be displayed), select a specific static file and click insert. Confirm that the "Verify that file exists" checkbox is NOT checked.


For IIS 7, this is a bit easier. Just be sure to have your application pool to be configured under "Integrated" pipeline and have these in the config file.

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true" />
system.webServer>
 
After this, IIS  should really handle all the request.

IIS doesn't serve unknown MIME types

Ever experienced working on a web project that works perfectly on dev and stage servers then shows up 404 in production? I experienced this as was troubled for some time. Usually, production servers have limited access and configuring it might is probably out of option. 

good thing, it can be configured on your config file.

(lets assume a non-standard extension and treat it like an XML)


for IIS 7 and above versions.

   
                        
   



As for IIS 6, I think it is not possible to configure in config. You will really 
have to kneel down server admins, so deal with them even if they are stubborn.

Few basic things to speed up transition learning in XSLT

Holiday sure is short (although it was a 3 day holiday), especially if we can just realize that we got lots of things to do...

I was able to work on my XSLT templates, and saw how I wrote them few months ago.  I even laughed when I saw that I did a horrible for-each block, that can be solved by  using the concat function, or even simpler than enlosing things between a curly brace (in case of attributes).


It improved a lot, way cleaner than it was before and more "straight-to-the-point", if you know what I mean. we can just directly write the templates as if we're writing HTMLs, without having to nest xsl:elements and attributes..



easter sunday..

Mall was probably crowded after having long holidays (including the mall operations).

I was busy updating my site templates.. and have myself review all the xslt templates I've done. I almost re-write some of the templates, and good thing I'm able to see the old templates location which had all the formatting I had in mind. *grins*

UI should have been easier if I would be writing the code directly, but unfortunately this is just for a short term. If I decide to change the layout again in the future, I might end up messing the site up and adding the site offline html for long periods... not to mention the site's domain renewal is flooding me for reminders... 


 Is it me or time runs faster? I remember that I slept at 4AM and left bed around 10AM. I took a meal at 3PM and realized I just ate my dinner at 8PM. I'm updating the UI/XSLT templates all day? Looking at the layout gives me a bit of satisfaction, but also tells me that there are many things to be done :( .... guess the people who said they are interested to participate on my web development project forgot to do what they committed to me :( too bad, they don't know what experience they are missing...




I better get something to eat and probably call it a day now.. body seems tired.


Long holiday break

We just enjoyed a long holiday break here in Philippines. While I enjoyed sleeping a bit longer than normal days, it also means a boring day since the stock market is also closed on holidays, but still this helped me devote my time to web development again.


I had a bit of problem deploying in IIS 7.0 . Well, I've been using IIS 7.0 in my personal site for almost 2 (maybe turning 3) years and I'm pretty sure that ASP.NET should be able to see all requests when the application pool is configured to run on Integrated Pipeline Mode. One of advantage of IIS 7.0 is that, it saves you some time configuring all the file paths handlers. Unlike the old days in IIS 6 below, you have to manually add the type of file and browse it (ISAPI). Either-way should work fine, but of course technology is there so use it.

 Juggling should be left done by acrobats. Juggling tasks often leads to mistakes. I can't believe I even made mistakes not to grant access to an SP a SSRS report uses and even had the SP overwritten when a new column was asked to be added there.. *sigh* And the hell week doesn't end there, I also had an SSIS task that was 100% working on the test server, but failed in the live server where it is scheduled as a sql job. Weird thing is that, the first day it had an error, it was complaining about a file it cannot delete... it again had some error and to my surprise, a different one.


reading here somehow gave me an idea,


social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/0c245265-79fc-406c-8ec6-6019eebc4f68/

but it was solved by someone... but glad it was fixed, although I really want to fix it myself :(


Now, I'm just thinking of UI ideas and was modifying my xslt templates. It was quite some time when I updated these templates. 




As for stock market, the I requested for some GT Capital stocks for reservation. The stock price was 455/share, so I assume it is at 10 board lot. I hope I can get some stocks for this. I'm also eyeing for EastWest bank.



It was really hot now, and sometimes I can't just get enough focus... so sometimes I resolve to playing shadow era on my phone.. 




2 more days to finish my templates....





FB Connect