title: ASP.NET C# use session data from dropdown
body: <p>OK so i am a bit lost and could do with some help.</p>
  
  <p>I am creating a program that a user inputs data into a form on the default page (I have that working).</p>
  
  <p>Then i use session variables to get the data input from a text box on the default page and place that data into a drop down menu on Page2 (I have that working).</p>
  
  <p>What im trying to do now is use the data selected from the drop down on the page2 and output it on to a label. any help would be appreciated.</p>
  
  <p><strong>Page2 code bellow session that populates drop down</strong>  </p>
  
  <pre><code>public partial class About : Page
      {
          protected void Page_Load(object sender, EventArgs e)
          {
  
  
              MyFruit = Session["Fruitname"] as List&lt;string&gt;;
              //Create new, if null
              if (MyFruit == null)
                  MyFruit = new List&lt;string&gt;();
              DropDownList1.DataSource = MyFruit;
              DropDownList1.DataBind();
  
  
          }
  </code></pre>