access a public function from another .aspx file
<p>i have 2 aspx files . I need to access a public function in b.aspx from a.aspx. How can i do that in asp.net using C#</p>

<p>My function from a.aspx is the following:</p>

<pre><code>&lt;script language="C#" runat="server"&gt;
       public String user()
        {
          return l1.Text;
        }
&lt;/script&gt;
</code></pre>
