how to use try catch on <object> attribute?
<p>if i have declared <code>&lt;object&gt;</code> under my .aspx page named MyPage.aspx as shown below.
for example, this class will receive two parameter for performing a division.</p>

<pre><code>&lt;object classid="clsid:XXXXXX-XXXX-XXXX-XXXX-XXXXXX" name="MyControl1" id="Object1"&gt;
    &lt;PARAM name="param1" VALUE="&lt;%=value1 %&gt;" /&gt;
    &lt;PARAM name="param2" VALUE="&lt;%=value2 %&gt;" /&gt;    
&lt;/object&gt;
</code></pre>

<p>and the value1 and value2 come from public int value1 and public int value2.
for example;</p>

<pre><code>public class MyPage    
{
    public int value1 = 6;
    public int value2 = 2;
}
</code></pre>

<p>i want to know that is there a way for me to check whether my external class in <code>&lt;object&gt;</code> is really being called or not? and can i use try catch to check about error that can be happened?</p>

<p>Thank you</p>

<p>vcha</p>
