how can i write dynamic website c#

This page has one button and a textbox. The default value for this textbox is 1. Each time you press the button, the value of the textbox is multiplied by 2, and when you click on the textbox, the default value is 1. in c#