I have an ASP.NET (C#) class that is used both on the client and server.
Depending on whether the code is being executed on the client or the server, it needs to behave differently.
What is the simplest & most efficient way of telling if the code is executing on the client or the server?
Thanks!
unless you are running Silverlight 2 or Silverlight 3 There is no way for Asp.Net to run C# code in the client (the users’ browser)