Features


Thursday, August 28, 2008

how to check folder exist and create a folder

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.

Wednesday, August 20, 2008

How to redirect page using javascript

this is very simple coding and i always forget this one.

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.

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.

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..