What's the simplest & most efficient way of telling if your code is executing on the client or the server?
<p>I have an ASP.NET (C#) class that is used both on the client and server.</p>

<p>Depending on whether the code is being executed on the client or the server, it needs to behave differently.</p>

<p>What is the simplest &amp; most efficient way of telling if the code is executing on the client or the server?</p>

<p>Thanks!</p>
