Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using an example I had knocked up the other day</p> <pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"CodeFile="Default.aspx.cs" Inherits="Default2" Title="Untitled Page" %&gt; &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"&gt; &lt;/asp:Content&gt; &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt; &lt;div id="Questions" align="center" style="background-color: #C0C0C0"&gt; &lt;asp:Repeater ID="QuestionsRepeater" runat="server" DataSourceID="SqlDataSourceQuestions"&gt; &lt;ItemTemplate&gt; &lt;div align="left" style="text-indent: 15px"&gt; &lt;asp:Label ID="Label1" runat="server" Text= '&lt;%# Eval("QCategory") %&gt;' Font-Bold="True" Font-Size="Medium"&gt;&lt;/asp:Label&gt; &lt;/div&gt; &lt;br /&gt; &lt;asp:RadioButtonList ID="RadioButtonList1" runat="server" DataSourceID="SqlDataSourceRatings" DataTextField="RatingsCategory" DataValueField="RatingsCategory" RepeatDirection="Horizontal" &gt; &lt;/asp:RadioButtonList&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; &lt;asp:SqlDataSource ID="SqlDataSourceQuestions" runat="server" ConnectionString="&lt;%$ ConnectionStrings:sandboxConnectionString %&gt;" SelectCommand="SELECT [QCategory] FROM [QuestionsCategory]"&gt; &lt;/asp:SqlDataSource&gt; &lt;asp:SqlDataSource ID="SqlDataSourceRatings" runat="server" ConnectionString="&lt;%$ ConnectionStrings:sandboxConnectionString %&gt;" SelectCommand="SELECT [RatingsCategory], [RatingsId] FROM [Ratings]"&gt; </code></pre> <p> </p> <p></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload