i have this task checking the folder if exist and if not create a folder. This is simple.
First i need to create a form with 1 textbox, button and a label in my page. I named the textbox as txtFolderName, button btnCheckandCreate and the label as lblMessage so now, I need to put the event in my button on click.. on the onclick eventon the button i need to put the code.
protected void btnCheckandCreate _Click(object sender, EventArgs e)
{
lblMessage.Text = "";
if (!System.IO.Directory.Exists(@"c:\" + txtFolderName.Text.ToUpper() + ""))
{
System.IO.Directory.CreateDirectory(@"c:\" + txtFolderName.Text.ToUpper() + "");
}
else {
lblMessage.Text = txtFolderName.Text + " is available";
}
}
Thats it. its so simple. at first i need to set the lblmessage to set to empty then check the inputed if is the folder exist and if not it will create a folder on it else put an message that the foldername is existing. hope this help.
Features
Thursday, August 28, 2008
Wednesday, August 20, 2008
How to redirect page using javascript
this is very simple coding and i always forget this one.
You need to put some button event onclick and call the function redirectUrl.
This will redirect to the next page. Hope this help.
function redirectUrl()
{
window.location = "http://ehamak.blogspot.com";
}
You need to put some button event onclick and call the function redirectUrl.
This will redirect to the next page. Hope this help.
Category
css
Davao City Kadawayan Festival 2008
Just to give you an Idea. why we're having an Kadayawan Festival..
It is a celebration of Good Harvest! This globally famous festival is a weeklong celebration and thanksgiving for nature’s bountiful harvest. Kadayawan Festival is being celebrated every 3rd Week of August. A celebration of the plentiful harvests of fruits and orchids during the season. Kadayawan is derived from the prehistoric word “madayaw,” a warm and friendly greeting also used to explain a thing that is valuable, superior, beautiful, good, or profitable, “Kadayawan” in Mandaya means anything that brings fortune, a celebration of life, a thanksgiving for the gifts of nature, the wealth of culture, the bounties of harvest and serenity of living. Ethnic tribes around Mt. Apo usually gathered during the harvest-time when they had a bountiful harvest to give thanks to their gods particularly the all-powerful Bathala (supreme God). According to legend, the occasion is noticeable by happiness, singing, and dancing, as well as offerings to their divine protectors.
T he festival is celebrated in the month of August with floats of fresh flowers and fruits, and indak-indak sa kadalanan or street dancing in colorful costumes. A variety of tribes parade the streets with their tribal costumes and jewelry. The city of Davao comes alive every year in August when it holds it yearly harvest festival. The streets are adorned with local fruit & vegetables while people hold street dances with abandon for four days. The harbour is the venue for native & power boat races. Everybody fights for seats to watch the Horse Fighting wherein stallions fight each other over the rights to mate with a mare. The crowd is sometimes tracked by the horses if they get too close. The last day the street is full of costumed dancers dancing to the local beat & decorated floats with glamorous Mindanao girls as eye candy. It's a time of fun & abandon. The festivity is not complete without the Bya'Neng ng Kadayawan or the Miss Kadayawan beauty contest. There is also the horsefight, a tribal animal show similar to the bullfight in Spain.
Photo we've taken in Rizal Park Entrance .


Barbecue here. eating time..

Imagine if i can drink all this? hmmmmm???? ...





Lots of bids for sale..


The latest tribe here in davao city.. hehehe just kidding, is she pretty?

This pictures are taken by my girlfriend cellphone..
This friday will take some picture's on floral float parade this would be a great event here in Davao City.. Also Hiyas ng kadayawan, horse fighting and lastly indak-indak sa kadalanan this are the most spectacular event.
It is a celebration of Good Harvest! This globally famous festival is a weeklong celebration and thanksgiving for nature’s bountiful harvest. Kadayawan Festival is being celebrated every 3rd Week of August. A celebration of the plentiful harvests of fruits and orchids during the season. Kadayawan is derived from the prehistoric word “madayaw,” a warm and friendly greeting also used to explain a thing that is valuable, superior, beautiful, good, or profitable, “Kadayawan” in Mandaya means anything that brings fortune, a celebration of life, a thanksgiving for the gifts of nature, the wealth of culture, the bounties of harvest and serenity of living. Ethnic tribes around Mt. Apo usually gathered during the harvest-time when they had a bountiful harvest to give thanks to their gods particularly the all-powerful Bathala (supreme God). According to legend, the occasion is noticeable by happiness, singing, and dancing, as well as offerings to their divine protectors.
T he festival is celebrated in the month of August with floats of fresh flowers and fruits, and indak-indak sa kadalanan or street dancing in colorful costumes. A variety of tribes parade the streets with their tribal costumes and jewelry. The city of Davao comes alive every year in August when it holds it yearly harvest festival. The streets are adorned with local fruit & vegetables while people hold street dances with abandon for four days. The harbour is the venue for native & power boat races. Everybody fights for seats to watch the Horse Fighting wherein stallions fight each other over the rights to mate with a mare. The crowd is sometimes tracked by the horses if they get too close. The last day the street is full of costumed dancers dancing to the local beat & decorated floats with glamorous Mindanao girls as eye candy. It's a time of fun & abandon. The festivity is not complete without the Bya'Neng ng Kadayawan or the Miss Kadayawan beauty contest. There is also the horsefight, a tribal animal show similar to the bullfight in Spain.
Photo we've taken in Rizal Park Entrance .


Barbecue here. eating time..

Imagine if i can drink all this? hmmmmm???? ...





Lots of bids for sale..


The latest tribe here in davao city.. hehehe just kidding, is she pretty?

This pictures are taken by my girlfriend cellphone..
This friday will take some picture's on floral float parade this would be a great event here in Davao City.. Also Hiyas ng kadayawan, horse fighting and lastly indak-indak sa kadalanan this are the most spectacular event.
Category
events
Tuesday, August 5, 2008
Try This one
My colleague did try this one and he shout and jump i dunno why try this one.. hope you enjoy it..
Instruction:
This is an amazing game of skill and patience. Do not touch the walls or you will have to start the game all over. Sound effects will help find your way to the end. Try and finish all 4 levels.Do you have the hands of a brain surgeon or do you write with crayons? Try not to cheat and use both hands.
This is much awesome if you have speaker or headset. let see if you can reach level 4. have a nice game.. and also leave comments for your level :-p. Thanks..
Instruction:
This is an amazing game of skill and patience. Do not touch the walls or you will have to start the game all over. Sound effects will help find your way to the end. Try and finish all 4 levels.Do you have the hands of a brain surgeon or do you write with crayons? Try not to cheat and use both hands.
This is much awesome if you have speaker or headset. let see if you can reach level 4. have a nice game.. and also leave comments for your level :-p. Thanks..
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?
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
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 :(
Category
emotions
Tuesday, July 8, 2008
Subscribe to:
Posts (Atom)


