Features


Tuesday, July 22, 2008

Voted email of the year.

I just want to share and to show you how we are blessed. This email forwarded to us by my boss.
Here is something to ponder.

If you think you suffer in life, do you suffer as much as he does?



If you complain about your transport system, how about them?



If your society is unfair to you, how about her?



If you think you are unhappy, look at them



If you think your salary is low, how about her?



If you think you don't have many friends...



If you think study is a burden, how about her?




Enjoy life how it is and as it comes

Things are worse for others and is a lot better for us J

There are many things in your life that will catch your eye

but only a few will catch your heart....pursue those...



Friday, July 11, 2008

missing

My mother is a 53 years old woman. i love my mother a lot she always there for me. during in my school days in elementary, high school and during college. She's there always in times of ups and downs even its difficult but shes there for us for my brother and sister. i wrote this one cause i miss my mother shes on the hospital today and she got an operation to remove the tumor in her breast. i am so worried cause shes so fat and i think shes also weak. thanks also for my brother lester for taking care of her, his a very bright guy and i admire him and am happy to be his brother (bow) . Anyway I pickup my Girlfriend in her office and walk going home, I saw my Father in front of the church, I don't know what he is doing there. but i know he is also worried about my mother situation, even he didn't tell me but i felt and saw to his face. Get well soon mom i love you so much and we love you. I have no one to talk about my feelings so i just blogs it here. get well soon mom :(

Tuesday, July 8, 2008

Cute Pictures



Thursday, June 26, 2008

How to remove character and leave numbers in c#

Regex.Replace Method

Within a specified input string, replaces strings that match a regular expression pattern with a specified replacement string.

ex.
// assigning value into the string xvalue.
string xvalue = "199 RemoveText";

// removing character and leave numbers
decimal value = (decimal)Regex.Replace(xvalue, @"[\D]", "");

//As the result:
199

Monday, May 26, 2008

How to store and retrieve cookie C#

cookie["Name"] = "Kiko Salva"
cookie.Expires = DateTime.Now.AddYears(1);
Response.Cookies.Add(cookie);

// To retrieve

lblName.Text = "Cookie Created.";
lblName.Text += "New Customer: " + cookie["Name"];

Tuesday, May 13, 2008

How to split in c#

private void SplitNo()
{
// string seperated by colons ';'
string items = "1--->;2--->;3--->;4--->;5--->";
string[] collection = new string[4];
// define which character is seperating fields
collection = items.Split(';');

for (int x = 0; x < collection.Length; x++) { Response.Write(collection[x] + "
");
}
}
-----------------------------------------------------------
Sample Output:

1--->
2--->
3--->
4--->
5--->

REPLACE (Transact-SQL)

Replaces all occurrences of a specified string value with another string value.

ex.

Url Value = "http://www.samplewebsite.com/left/right/getch/"

I want to remove the http://www.samplewebsite.com/ and change it to http://www.minewebsite.com/

Query Sample :

update tbl_URLs set url = replace(url,'http://www.samplewebsite.com/','http://www.minewebsite.com/')

the output must be:
http://www.minewebsite.com/left/right/getch/

Hope this will help.