Using conditions in different triggers
<p>I am having a lot of difficulties trying to find out more about how to type out a set of codes and reference it at other parts of the CS file.</p>

<p>For example, I have a simple "switch statement" with a label. Instead of typing it out 2 or 3 times, I would like to just be able to call it. Below is a quick illustration of what I am tyring to do.</p>

<pre><code>//Begin Reuseable Codes
string title;
switch (Request.QueryString["parameter"]){
 case "first":
       title = "123";
       break;
 case "two":
       title = "ABC";
       break;
}
lblDDSubject.Text = "My message" + title
//End Reuseable Codes


protected void Page_Load(object sender, EventArgs e)
{
    call the above reusable codes;
}

protected void something_SelectedIndexChanged(object sender, EventArgs e)
{
    call the above reusable codes here also;
]
</code></pre>

<p>Since I am a super-noob, may the assistor(s) respond in less abstract way? </p>
