Search

Xml Helper file

I wrote a helper utility to work with XMl files in C#, these are some common set of functions that i have been using for day-to-day work, I compiled it inside a common entity now ;)

Get UnCached version form Ajax file request

While loading external javascript there is problem of caching the general solutionfor this is appending a url parameter like "?rnd=Date.Now()" at the end of the url, so that the url is always unique while making the call. The other way around is to set the IIS ouput caching with FIle change notifications. But the same could be achieve without much effort by setting the response header. We can set the response header to get the modified version from the server instead of the cached one using the following script:

How to define a class in JScript ?

This a common example for JScript(ECMA262) to create a class with defined constructor. The constructor can be parameteries to accent a/multiple parameter.