title: Show Hide DIV with TextBox based on DropDownList Selected Value
body: <p>In this I want to popup hidden div when click the drop-down value. My drop down list values get from database. So it fill in dynamical.</p>
  
  <pre><code>&lt;tr style="padding-top: 10px" class="table-row"&gt;
      &lt;td class="auto-style1" style="padding-left: 20px; padding-top: 10px;"&gt;Select Report Type&lt;/td&gt;
      &lt;td style="padding-top: 10px" class="auto-style2"&gt;
          &lt;asp:DropDownList ID="reportTypeDropDownList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="reportTypeDropDownList_SelectedIndexChanged"&gt;&lt;/asp:DropDownList&gt;&lt;br&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  
  
  In above its my drop down list..I blinded data to it from database.
  
  &lt;div style="background-color:aquamarine"  id="div1"&gt;
  &lt;table&gt;
  
  &lt;tr&gt;
      &lt;td&gt;From Date&lt;/td&gt;
      &lt;td&gt;
          &lt;asp:TextBox ID="fromDateTextBox" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;asp:CalendarExtender ID="fromDateTextBox_CalendarExtender" runat="server" TargetControlID="fromDateTextBox"&gt;
          &lt;/asp:CalendarExtender&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;To Date&lt;/td&gt;
      &lt;td&gt;
          &lt;asp:TextBox ID="toDateTextBox" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;asp:CalendarExtender ID="toDateTextBox_CalendarExtender" runat="server" TargetControlID="toDateTextBox"&gt;
          &lt;/asp:CalendarExtender&gt;
          &lt;asp:Button ID="viewButton" runat="server" OnClick="viewButton_Click" Text="View" /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the div what i want to popup when click the value</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>protected void reportTypeDropDownList_SelectedIndexChanged(object sender, EventArgs e)
  {
      ReportDataAccess reportDataAccess = new ReportDataAccess();
  
      if (reportTypeDropDownList.SelectedValue=="1")
      {
          //... some logic
      }
  }
  </code></pre>
  
  <p>in this code I tried to do it in <code>report.aspx.cs</code>.</p>
  
  <p>So help me!</p>