need to display only subquestions when itemcommand evenst fires.
-
Hai all, i had one page which can have no.of questions?i retrieve and display the questions. my problem is the question no. 5 have sub questions.if i click the fifth question link then it will display only the subquestion. how can i get the subquestions for main question 5. Exam: What is xyz.com and what can i buy here? How Do I upload my images? Are my pictures safe? What are your prices and how much will my order cost? 5.Ways to contact us?------This is a link.if i click this link then all the above 4 questions will be invisible and the sub questions will be visible . sub questions r from DB 1.Can i contact through phone? 2.Can i contact through mail?
Thanks Subbu.
-
Hai all, i had one page which can have no.of questions?i retrieve and display the questions. my problem is the question no. 5 have sub questions.if i click the fifth question link then it will display only the subquestion. how can i get the subquestions for main question 5. Exam: What is xyz.com and what can i buy here? How Do I upload my images? Are my pictures safe? What are your prices and how much will my order cost? 5.Ways to contact us?------This is a link.if i click this link then all the above 4 questions will be invisible and the sub questions will be visible . sub questions r from DB 1.Can i contact through phone? 2.Can i contact through mail?
Thanks Subbu.
-
You could use a panel for this, put your first four questions in a panel and your last one in a seperate panel and just make visible/invisible when you need to.
We are not a Code Charity
Thanks for ur immediate reply. i had done it by using two panels. like: <cc2:
.netman wrote:
Panel ID="pnldlst"
runat="server" Visible="true" Width="550px"> <anthem:DataList ID="dtlstQues" runat="server" EnableCallBack="true" OnItemDataBound="dtlstQues_ItemDataBound" OnItemCommand="dtlstQues_ItemCommand"> <ItemTemplate> <table width="100%" border="0"> <tr> <td class="text12blue" style="width:500px"><a id="ancQues" runat="server" style="padding-left:8px"/> </td> <cc2:
.netman wrote:
Panel ID="Panel1"
runat="server" Visible="true" Width="550px"> <td> <anthem:LinkButton id="ancsubQues" runat="server" style="padding-left:8px" CommandName="SubQuestion"/> <anthem:HiddenField ID="hdnQues" runat="server"/> </td> </cc2:Panel> <%--<td> <asp:Label ID="example" runat="server" Visible="true"/></td>--%> </tr> </table> </ItemTemplate> </anthem:DataList> </cc2:Panel> but it is showing all the questions including subquestions .and the second panel is not showing intellisence.
Thanks Subbu.
-
Thanks for ur immediate reply. i had done it by using two panels. like: <cc2:
.netman wrote:
Panel ID="pnldlst"
runat="server" Visible="true" Width="550px"> <anthem:DataList ID="dtlstQues" runat="server" EnableCallBack="true" OnItemDataBound="dtlstQues_ItemDataBound" OnItemCommand="dtlstQues_ItemCommand"> <ItemTemplate> <table width="100%" border="0"> <tr> <td class="text12blue" style="width:500px"><a id="ancQues" runat="server" style="padding-left:8px"/> </td> <cc2:
.netman wrote:
Panel ID="Panel1"
runat="server" Visible="true" Width="550px"> <td> <anthem:LinkButton id="ancsubQues" runat="server" style="padding-left:8px" CommandName="SubQuestion"/> <anthem:HiddenField ID="hdnQues" runat="server"/> </td> </cc2:Panel> <%--<td> <asp:Label ID="example" runat="server" Visible="true"/></td>--%> </tr> </table> </ItemTemplate> </anthem:DataList> </cc2:Panel> but it is showing all the questions including subquestions .and the second panel is not showing intellisence.
Thanks Subbu.