Changing columns in display based on variable
<p>I currently have a table with a repeater that is being filled with data</p>

<pre><code>&lt;table width="100%" &gt;
  &lt;tr&gt;
    &lt;td class="add_border_bold" nowrap&gt;Title&lt;/a&gt;&lt;/td&gt;
    &lt;td class="add_border_bold" nowrap&gt;User&lt;/td&gt;
  &lt;/tr&gt;
  &lt;asp:Repeater id="program_list" OnItemDataBound="Repeater1_ItemDataBound" runat="server"&gt;
    &lt;ItemTemplate&gt;
      &lt;tr&gt;
        &lt;td class="add_border"&gt;
          &lt;a href="page.aspx?id=&lt;%# Eval("id") %&gt;"&gt;&lt;%# Eval("short_title") %&gt;&lt;/a&gt;&amp;nbsp;
        &lt;/td&gt;
        &lt;td class="add_border"&gt;
          &lt;%# Eval("userid") %&gt;&amp;nbsp;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
&lt;/table&gt;
</code></pre>

<p>I'm currently converting this from coldfusion. In the previous application, I had multiple table layouts for displaying different kinds of information, for example, phone number instead of userid. (although, working with a lot more columns, I shortened it for posting). In coldfusion I would just wrap each table in a <code>&lt;cfif&gt;</code> tag controlled by a variable that said which view to use. I am unaware how to get multiple data displays into a single page controlled by a variable, like I was before. Mostly because, it appears that most of my logic is done in the code behind files, so I don't understand how to get those changes across in the .aspx, or how to manipulate them from the code behind file. </p>

<p>Thanks in advance.</p>
