The specific parameters depend on the technology you are using. However, the concept will remain very similar, although for ASP.NET it will be a little more interesting.
WinForms / WPF / Silverlight
, , Text, .
ASP.NET. , .
ASP.NET OnInit, . Button.Click , OnInit. , ID .