/// <summary> /// Click event handler for btnDetailsC which shows details about C: /// </summary> /// <param name="sender">Object on which event has occured</param> /// <param name="e">Args for the event</param> protected void btnDetailsC_Click(object sender, EventArgs e) { //call to the DetailsOfCDrive() method to get attributes of C: List <string> result = UtilityFunctions.DetailsOfCDrive(); //displaying the attributes Response.Write("<h2>Attributes of C:</h2>"); foreach (string item in result) { Response.Write(item + "<br />"); } }