Here is how you can set Visible
property either for the control, or for the wrapping panel:
<asp:Panel ID="pnlTypeText" runat="server"
Visible='<%# (int)Eval("ID") == 1 %>'>
<asp:TextBox ID="txtResponse" runat="server" />
</asp:Panel>
<asp:Panel ID="pnlTypeRadio" runat="server"
Visible='<%# (int)Eval("ID") == 2 %>'>
<p><%# Eval("QuestionnaireAnswerTitle") %></p>
<asp:RadioButton ID="rbResponse" runat="server" />
</asp:Panel>