Ramco Ramco

Ramco Ramco

  • 438
  • 3.4k
  • 542.5k

QuestionType & ReadingProficiencyId in one row

Apr 29 2022 5:41 AM

Hi

  I want QuestionType & Reading Proficiency Id & one image to be shown in one row 

                            <asp:Repeater ID="rpQuestions" runat="server" OnItemDataBound="rpQuestions_ItemDataBound">
                                <ItemTemplate>
                                    <div class="col-md-12">
                                        <div class="card card-body border-top-info">
                                            <div class="col-md-4">
<%--                                                <div class="card-body border-top-0">
                                                    <div class="d-sm-flex flex-sm-wrap mb-3">
                                                        <div class="ml-sm-auto mt-2 mt-sm-0">--%>
                                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("QuestionType") %>'></asp:Label></span>
                                                       <%-- </div>
                                                    </div>
                                                </div>--%>
                                            </div>
                                            <div class="col-md-4">
                                                <%--<div class="card-body border-top-0">
                                                    <div class="d-sm-flex flex-sm-wrap mb-3">
                                                        <div class="ml-sm-auto mt-2 mt-sm-0">--%>
                                                            <asp:Label ID="LlbId" runat="server" Text='<%# Eval("ReadingProficiencyID") %>'></asp:Label></span>
                                                        <%--</div>
                                                    </div>
                                                </div>--%>
                                            </div>
                                            <table class="table" id="tbldata">
                                                <tbody>
                                                    <tr class="table-border-double" runat="server" id="EditCtrls">
                                                        <td colspan="3"><span class="text-muted">Question
                                                            <asp:Literal ID="ltrlNum" Text="<%# Convert.ToString(Container.ItemIndex + 1) %>" runat="server"></asp:Literal>:</span>
                                                            <%--<asp:LinkButton ID="lnkDel" Style="float: right" runat="server" class="list-icons-item text-danger-600" OnClick="lnkDel_Click"><i class="icon-bin mr-1"></i></asp:LinkButton>--%>
                                                            <asp:LinkButton ID="lnkEdit" Style="float: right" runat="server" class="list-icons-item text-info-600" OnClick="lnkEdit_Click"><i class="icon-pencil7 mr-1"></i></asp:LinkButton>
                                                        </td>

                                                    </tr>
                                                    <tr>
                                                        <td colspan="3" style="border-top: none;">
                                                            <span class="font-weight-semibold">
                                                                <asp:Label ID="lblQues" runat="server" Text='<%# Eval("Question") %>'></asp:Label></span>
                                                                <asp:HiddenField ID="hdfQuesID" runat="server" Value='<%# Eval("QuestionID") %>' />
                                                                <asp:HiddenField ID="hdfCorrectOption" runat="server" Value='<%# Eval("CorrectOption") %>' />
                                                        </td>
                                                    </tr>
                                                    <asp:Repeater ID="rpOptions" runat="server">
                                                        <ItemTemplate>
                                                            <tr>
                                                                <td style="width: 40px;">
                                                                    <asp:Label ID="lblOp" runat="server" Text='<%# Eval("OptionOrder") %>'></asp:Label></td>
                                                                <td>
                                                                    <asp:Label ID="lblOpt" runat="server" Text='<%# Eval("Options") %>'></asp:Label></td>
                                                                <td class="text-right"><i class='<%#Eval("CorrectOption").ToString() == "True" ?"icon-checkmark3 text-success" : "" %>'></i></td>
                                                            </tr>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>

 

Thanks