title: ASP.Net Get HTML cell value for code behind by clicking
body: <p>I'm not a professional in C# and ASP.Net so please have some patience with me.</p>
  
  <p>I have the following problem.</p>
  
  <p>I'm using ASP.Net WebForm API with C# for creating a dashboard. </p>
  
  <p>I have a generic HTML table (taken out from a sql query) which will be displayed. Now I want to implement the feature, that when the user clicks on a cell for example in the column ID, he should get an details view which is a bootstrap modal. 
  For that I need the ID value which is in this cell. How can I get this value?</p>
  
  <p>With the value I will start a new sql query and more other specific informations are going to be shown.</p>
  
  <p>Here is my aspx. structure:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;table id="MyTable" class="table table-striped table-bordered table-condensed table-responsive"&gt;
                      &lt;thead&gt;
                          &lt;tr&gt;
                              &lt;th&gt;ID&lt;/th&gt;
                              &lt;th&gt;Name&lt;/th&gt;
                              &lt;th&gt;Typ&lt;/th&gt;
                              &lt;th&gt;Something else&lt;/th&gt;
                              &lt;th&gt;Date&lt;/th&gt;
                          &lt;/tr&gt;
                      &lt;/thead&gt;
                      &lt;tbody&gt;
                          &lt;%=Tabelle.GetTable.dataTable_all%&gt;
                      &lt;/tbody&gt;
                  &lt;/table&gt;
                  &lt;script type="text/javascript"&gt;
                      $(document).ready(function () {
                          $('#MyTable').DataTable();
                      });
                  &lt;/script&gt;
  </code></pre>
  
  <p>the variable dataTable_all is a string. So this is my table in HTML Code.</p>
  
  <p>My Result for <code>&lt;tbody&gt;</code> is 366 rows big and here is an extract:</p>
  
  <pre class="lang-html prettyprint-override"><code>                        &lt;tr&gt;
                              &lt;td&gt;154789&lt;/td&gt;
                              &lt;td&gt;Testproject X&lt;/td&gt;
                              &lt;td&gt;Good&lt;/td&gt;
                              &lt;td&gt;greencolored&lt;/td&gt;
                              &lt;td&gt;01.01.2015&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;189365&lt;/td&gt;
                              &lt;td&gt;Testproject B&lt;/td&gt;
                              &lt;td&gt;Good&lt;/td&gt;
                              &lt;td&gt;redcolored&lt;/td&gt;
                              &lt;td&gt;08.01.2015&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;136471&lt;/td&gt;
                              &lt;td&gt;Testproject Y&lt;/td&gt;
                              &lt;td&gt;Bad&lt;/td&gt;
                              &lt;td&gt;pinkcolored&lt;/td&gt;
                              &lt;td&gt;15.04.2015&lt;/td&gt;
                          &lt;/tr&gt;
  </code></pre>
  
  <p>So how can I do it that when I click on for example ID 136471 that the value will be given to a variable in my c# code?</p>