Wednesday, November 23, 2005
Michael Bolton is gonna perform in Colombo on 1st of December 7.30 PM at CR&FC. He is a classy singer, songwriter, and social activist. I love his unique gravelly singing voice. Bolton has sold over 52 million albums and singles worldwide, and has won two Grammys for best male vocalist, and six American Music Awards among many other accolades.
Tuesday, November 22, 2005
Father of Science Fiction
Have you heard about Jules Verne (1828-1905), A French author who is consider as the father of science fiction. Verne was noted for writing about cosmic, atmospheric, and underwater travel long before air travel and submarines were commonplace and before practical means of space travel had even been devised. You can read his novels as e-versions. Biography.
Monday, November 21, 2005
MoBike = Fatality
I have decided to get rid of my mo-bike. Yesterday I have eye witnessed the consequences of a dreadful and fatal mo-bike accident for the second time in the recent past. Unfortunately I observed them in front of my eyes.
No matter how hard you try to ride safe, mo-bikes are extremely hazardous. Though it’s a good companion in urgencies, though I am not riding daily, I will completely give it up within next four months for sure. That’s what my relatives forcing me to do as well.
No matter how hard you try to ride safe, mo-bikes are extremely hazardous. Though it’s a good companion in urgencies, though I am not riding daily, I will completely give it up within next four months for sure. That’s what my relatives forcing me to do as well.
Friday, November 18, 2005
Wednesday, November 16, 2005
Wasn't me ?
My superior showed me a curriculum vitae of a candidate who has applied for a vacancy at my organization. On his portfolio, there was a site done by me sometime ago for the Lions Club of Sri Lanka, District 306 B2.
Wednesday, November 09, 2005
Gotta Solution
I got an awesome way out to conclude my pain with Browser Caching.
System.Random r = new System.Random();
Thumb2.ImageUrl="imagename.jpg?"+r.NextDouble();
http://www.developerfusion.co.uk/forums/topic.aspx?id=31505&action=showlast
Fed up with Browser Caching
I have an image control on my c#.net page. Users can upload images to the site and my code creates a thumbnail of that newly uploaded image and assigns it to the image control. So the image name will be always same but image changes/overwrites.
The ill point is, the image control does not refresh the newly selected image. The change takes place when I manually refreshed the page.
I found a solution: In IIS management console, select the website, open properties, select HTTP Headers tab, enable Content Expiration and select ‘expire immediately’.
This works perfectly, but in my case I don’t have the access to IIS management console in my hosting server. Therefore I need to get this thing done from the code. I have tried following tricks but none of them worked.
1) set the HTML meta tags
META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
META HTTP-EQUIV=expires CONTENT=-1
2) I have set a cache and removed it before assigning the imageurl
Cache.Insert("image01",Thumb1.ImageUrl);
Cache.Remove(“image01”);
3) Flushing cache each time refreshing
Response.Cache.SetCacheability(HttpCacheability.NoCache)
I am exploring a way to get rid of this issue since three days.
The ill point is, the image control does not refresh the newly selected image. The change takes place when I manually refreshed the page.
I found a solution: In IIS management console, select the website, open properties, select HTTP Headers tab, enable Content Expiration and select ‘expire immediately’.
This works perfectly, but in my case I don’t have the access to IIS management console in my hosting server. Therefore I need to get this thing done from the code. I have tried following tricks but none of them worked.
1) set the HTML meta tags
META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
META HTTP-EQUIV=expires CONTENT=-1
2) I have set a cache and removed it before assigning the imageurl
Cache.Insert("image01",Thumb1.ImageUrl);
Cache.Remove(“image01”);
3) Flushing cache each time refreshing
Response.Cache.SetCacheability(HttpCacheability.NoCache)
I am exploring a way to get rid of this issue since three days.