Replace string – C# source code
Posted by Jayceooi
I need to replace some of the words in the sentence. But how am I going to do so? Let’s say, I have this sentence as example.I love to eat durian very much.I want to replace the word “durian” with “apple”. Just follow below C# source code to replace it.String sentence = “I love to eat durian very much.”;
sentence = sentence.Replace(“durian”, “apple”);You will get the output like this…I love to eat apple very much.Based on the example above, just key in 2 parameters in String.Replace(“old value“, “new value“). The “new value” will replace “old value”.
Enjoy coding…[...]
Continue Readingsentence = sentence.Replace(“durian”, “apple”);You will get the output like this…I love to eat apple very much.Based on the example above, just key in 2 parameters in String.Replace(“old value“, “new value“). The “new value” will replace “old value”.
Enjoy coding…[...]
Free 1 night at First World Hotel, Genting Highlands from Standard Chartered Credit Card
Posted by Jayceooi
Yeah… I received my Standard Chartered credit card today. And it came along with “Free 1 night hotel stay in Standard Room at First World Hotel, Genting Highlands Resort” voucher. I can go Genting Highlands again lo. And I booked 1 room already too. Will go to Genting Highlands first before go to Melaka. Can’t wait for my holidays… Actually, I applied this Standard Chartered credit card because of this voucher. Else I will not simply apply credit card. The Standard Chartered credit card officer was happy to see me. Because he did not need to persuade me much to sign up for the card. I went there by myself. Do you want a free night at First World Hotel, Genting[...]
Continue ReadingHTML Redirect – auto refresh to other website
Posted by Jayceooi
HTML redirect is a nice tool to help you route current website to another one. This is a client side script. It will inform the browser to redirect to another website that you have defined.
Below is the HTML redirect code
<meta http-equiv=”Refresh” content=”5; url=http://PrettyGirl2u.com” />Just put this code on between the head tags. As the code example, it will refresh to a new website in 5 seconds and route to http://PrettyGirl2u.com which mentioned at content attribute.[...]
Continue ReadingBelow is the HTML redirect code
<meta http-equiv=”Refresh” content=”5; url=http://PrettyGirl2u.com” />Just put this code on between the head tags. As the code example, it will refresh to a new website in 5 seconds and route to http://PrettyGirl2u.com which mentioned at content attribute.[...]
JayceOoi.com Alexa traffic rank passed 100,000
Posted by Jayceooi
JayceOoi.com Alexa traffic rank passed 100,000 finally. Yeah!!! Time to celebrate. (more…)[...]
Continue ReadingFree ice cream from Intel
Posted by Jayceooi
Yoo… Yoo… I got free stuff from my company, Intel again. This time is ICE CREAM. Yeah… Yeah… Hmm… What kind of ice cream will Intel give me? Could it be like the ice cream below?Stop dreaming and get back to work!!![...]
Continue ReadingApple iPad reviews roll in – with video
Posted by Wirefresh
Reviewers lucky enough to get their mitts on an pre-release model of the iPad have been passing their verdict on Apple’s eagerly awaited device, and for the most part it’s...[...]
Continue ReadingRunning Mac OSX on a netbook – it can be done!
Posted by Wirefresh
Although Mr Jobs and his Apple chums have decided on your behalf that really don’t want a nice, convenient, small netbook running your favourite OS, there appears to be no...[...]
Continue ReadingThe Great HMDI Cable Ripoff. Save your cash, any old cable will do.
Posted by Wirefresh
So you’ve hammered your bank account and kitted out your front room with a lush, cinema-threatening flat-screen LCD TV. Keen to keep things truly hi-fi and state-of-the-art, you’ve bagged yourself...[...]
Continue ReadingGoogle Chrome to offer built-in Flash support. Apple quietly fumes.
Posted by Wirefresh
Google has confirmed that future versions of its Google Chrome browser will integrate Adobe’s Flash plug-in. The move looks set to aggravate relations with Apple a little further, who have...[...]
Continue ReadingLogitech Harmony 300i universal remote control for cut price couch control
Posted by Wirefresh
Logitech has launched a low cost universal remote control, designed to replace the growing clutter of remotes no doubt currently festooned all over your living room coffee table.[...]
Continue Reading
No comments:
Post a Comment