Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. need to display only subquestions when itemcommand evenst fires.

need to display only subquestions when itemcommand evenst fires.

Scheduled Pinned Locked Moved ASP.NET
questiondatabasecomhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    subbu sk
    wrote on last edited by
    #1

    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.

    E 1 Reply Last reply
    0
    • S subbu sk

      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.

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • E eyeseetee

        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

        S Offline
        S Offline
        subbu sk
        wrote on last edited by
        #3

        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.

        E 1 Reply Last reply
        0
        • S subbu sk

          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.

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          subbu.sk wrote:

          .netman wrote: Panel ID="pnldlst"

          I didnt write that!, how did that happen? You need some code behind to say something like: if question 5 clicked show sub questions panel else show 1-4 questions panel

          We are not a Code Charity

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups