title: How do I access a variable from the code behind of another page?
body: <p>I have an  index.aspx (index.aspx.cs) which will include the body.aspx (body.aspx.cs) using <code>Server.execute(&quot;body.aspx&quot;);</code></p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Data;
  using System.Data.SqlClient;
  using System.Configuration;
  using System.Collections;
  
  public partial class index : System.Web.UI.Page
  {
      public string text1 = &quot;abc&quot;;
  
      protected void Page_Load(object sender, EventArgs e)
      {
          
  
      }
  
  }
  </code></pre>
  <p>In index.aspx.cs, there is a variable <code>text1</code> which I want to use in body.aspx.cs, how to do that?</p>