title: using alert in template gridview to show hidden value of different column
body: <p>I stumbled on the solution to this on this board and set up my program to use it. I even posted comment that it was a great solution. (two days ago) But the code got changed by accident and cant find the solution after spending the day looking for it.</p>
  
  <p>Basically I have a gridview with a bound column containing a value that is hidden.  I have another template column which exists as a trigger - that is  when it is clicked it should bring up an alert screen to show the hidden value from the other column.</p>
  
  <p>It worked beautifully and then pfft.  (shame on me for not printing code or backing up)</p>
  
  <p>Here is what I have left from that code - I have been tryign all sorts of combinations --  The solution was so elegant -  i realize there are alternatives but they are cumbersome </p>
  
  <pre><code>    &lt;asp:TemplateField&gt; 
             &lt;ItemTemplate&gt; 
       &lt;asp:Label ID="txtHint" runat="server"&gt; 
          &lt;a href="#" onclick="alert(&lt;%# Eval("mnemonic") %&gt;);"&gt;&lt;/a&gt; 
       &lt;/asp:Label&gt; 
          &lt;/ItemTemplate&gt; 
       &lt;/asp:TemplateField&gt; 
  </code></pre>
  
  <p>thx</p>