title: Using local variable in aspx page
body: <p>I am new to c#. </p>
  
  <p>Is it possible to use a local variable (declared in Page_Load method inside System.Web.UI.Page class) in the .aspx page. or do i have to declare an accessor variable inside "UI.Page" class and use it as reference?</p>
  
  <pre><code>public partial class consoleTours : System.Web.UI.Page
  {
     public string AStr{ get; set; }// i could use this
  }
  
  protected void Page_Load(object sender, EventArgs e)
  {
      string LStr=""; &lt;i&gt;// i couldn't use this
  }
  </code></pre>
  
  <p>Thank you for edit. as to c# i am also new to stackoverflow as you could see. 
  Point of my question is.I couldn't use public property (AStr) for tryParse.i first use local variable for parsing then assign LStr to AStr and use it in the page. so it makes me use 2 variables instead one. I thought there should be another way.</p>