How to deal with errors in function nesting and calling functions within other functions
<p>Scenario:<br>
I have to check for user input (a string) that shouldn't contain <code>&lt;.%?/</code> symbols and if it does I remove them. I have 20 different places where I've to check it, actually, 20 different pages with each 20 different controls.</p>

<p>So I wrote a function like the following shortened example:</p>

<pre><code>public string MyFunction (string userinput)
{
    return userinput.replace("&lt;"," ");
}
</code></pre>

<p>Now if I want to call this function from within another function and there's an error in this function's <code>try catch</code> block I want it to write an error to a <code>Label</code> on the main page, without interrupting the second function.
Also i am thinking of implementing conditional statement function calls too. </p>
