Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonathan 8 posts 28 karma points
    Feb 01, 2010 @ 06:51
    Jonathan
    0

    A search form; asp form controls in xslt; some better solution?

    I have a hierarchy of content nodes, of people grouped by location, in the form

    location1 -> person1
                 person2
    location2 -> person3
    location3 -> person4
                 person5
                 etc.

    Each person has a multi-selectable property (checkbox list) of particular job-areas for which they are responsible.

    I'm trying to create a simple form that allows a user to search for a person by name, location, and/or job-area - each as a separate field. A user should be able to enter any of the particular details and have returned a page of links to matching content nodes.

    I have Contour, but it doesn't seem to be a match to this particular problem - I'm not looking to store the individual searches, and I can't see how to just post the results of the form to another page to generate a dynamic page.

    I have been able to use <asp:textbox> and friends in a template with good success - able to post the form results to another page, but only for a static template. The locations and job-areas will change from time to time, and I have tried to use an XSLT macro to populate the selection boxes for location and job-area, but I get errrors when trying to use the <asp:> style syntax within XSLT.

    Summary questions:

    1. Is it possible to solve this somehow using Contour?

    2. Is is possible to generate <asp:> type output via an XSLT? If not is there a viable alternative?

    3. Is there some better way to solve this?

  • Jonathan 8 posts 28 karma points
    Feb 01, 2010 @ 22:28
    Jonathan
    0

    I think I've got this worked out - I used regular HTML forms after removing the <form id="MasterForm" runat="server"> that was wrapping all my pages - what purpose would it serve? I'm quite new to Umbraco and ASP.net...

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Feb 01, 2010 @ 23:18
    Morten Bock
    1

    The runat=server form is used to enable asp.net webform postpacks. If you are not using any asp.net controls (or packages) that need postback, then you are fine using the regular html forms.

    To answer you no 2 question, No, it is not possible to use that asp: type controls inside xslt.

  • Jonathan 8 posts 28 karma points
    Feb 09, 2010 @ 02:38
    Jonathan
    0

    Thanks for the info.

Please Sign in or register to post replies

Write your reply to:

Draft