/// <summary> /// Click event handler for btnAddNewDir which adds a new directory to C: /// </summary> /// <param name="sender">Object on which event has occured</param> /// <param name="e">Args for the event</param> protected void btnAddNewDir_Click(object sender, EventArgs e) { //call to the CreatDirectory() method which creates the directory in C: bool result = UtilityFunctions.CreateDirectory(); //checking the result received if (result) { //if success Response.Write(Messages.DirCreationSuccess); } else { //if failed Response.Write(Messages.DirCreationFailed); } }