protected void Button2_Click(object sender, EventArgs e) { String[] ret = new String[300]; Service1 ser = new Service1(); ret=ser.run(); Label1.Text = "Executing .. "; Thread.Sleep(2000); Label1.Text = " "; foreach (String t in ret) { Label1.Text += (t+"\n"); } }