celestialWhiteNoiseGetting “into the zone” and staying “in the zone” is hard with lots of distractions. The best work environment depends on the person but most developers seem to be more productive in a quiet area. These types of work areas are hard to come. One tool that seems to help me reduce distractions is listening to White Noise.

I’ve tried listening to music but if it’s a good song I’ll get distracted by the words. I’m sure that there are plenty of ways out there but thought I’d pass this one along that I’ve found to be useful. It’s ten hours of Celestial White Noise.

https://www.youtube.com/watch?v=vcJ-o_fh1B4

  1. Create a new project. File -> new -> project
  2. Select Visual Web Part

howTocreateWpImage1

  1. Choose “Deploy as farm solution”
  2. Enter the url of the site that you are going to use for debugging your web part.

howTocreateWpImage2

  1. Switch to design view in the ide. We will create a simple hello world.
  2. Drag an asp:textbox control onto the design service
  3. Drag an asp:button control onto the design service

howTocreateWpImage3

 

  1. Double click the button.
  2. We will write “hello world” to the text box.

protected void Button1_Click(object sender, EventArgs e)

{

TextBox1.Text = “hello world”;

}

 

  1. Now we will debug the project:

howTocreateWpImage4

 

  1. We now need to insert the web part on the page.
    1. Click edit page
    2. Click the insert tab
    3. Click Web Part

 

howTocreateWpImage5

 

  1. In the Categories area you will find the Web part under “custom”. Select the web part and click add.

howTocreateWpImage6

 

Your web part should now appear!

howTocreateWpImage7

 

 

  1. Save the page.
  2. Click the button and see “hello world” appear in the text box!
  3. That’s it!