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?
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...
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.
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
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?
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...
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.
Thanks for the info.
is working on a reply...