title: Redirect to ASPX file from .cs File
body: <p>In asp.net Website, On a WebForm, after button onclick event I am calling code behind method as below</p>
  
  <pre><code> protected void Button1_Click(object sender, EventArgs e)
   {
       MyClass obj = new MyClass();
       String res = obj.CallMe("some parameters");
   }
  </code></pre>
  
  <p>Where MyClass resides in <strong>MyClass.cs</strong> file.
  Inside <strong>CallMe()</strong> :</p>
  
  <pre><code>public String CallMe("some parameters")
  {
     String to_return ="";
     //some code : to_return="something";
     string page_name= // some code returns a name of page to redirect to
     if(page_name is null)
     { return to_return; }
     else
        //redirect to page_name;
  }
  </code></pre>
  
  <p>How to redirect from .cs file since we dont have access to HttpResponse object?</p>