Currently creating a custom booking/reservation system where a logged in user can access a page that displays all the bookings that have been made. From this page the user can confirm/edit or delete the bookings. I am thinking of implementing this as a gridview in a user control, but I am unsure how to render the gridview with the bookings.
Below is my code for the page and code-behind so far
<asp:GridView ID="bookings" runat="server" />
public partial class Bookings : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var nodes = UmbracoHelper.GetNodesFromXpath("//BookingArea/Booking");
At the moment it outputs the node Id, template, NodeTypeAlias, WriterName, CreatorName, WriterId, CreatorId, Path, CreateDate, UpdateDate, Version and NiceUrl, whereas I need it to output the node properties that I have created, for example, restaurant, date, time, etc.
Any ideas how to go about this? Or any suggestions of another way of trying to achieve this? Is there an Xslt way to display the nodes with the ability to edit/delete them?'
Front-end admin gridview of nodes
Currently creating a custom booking/reservation system where a logged in user can access a page that displays all the bookings that have been made. From this page the user can confirm/edit or delete the bookings. I am thinking of implementing this as a gridview in a user control, but I am unsure how to render the gridview with the bookings.
Below is my code for the page and code-behind so far
At the moment it outputs the node Id, template, NodeTypeAlias, WriterName, CreatorName, WriterId, CreatorId, Path, CreateDate, UpdateDate, Version and NiceUrl, whereas I need it to output the node properties that I have created, for example, restaurant, date, time, etc.
Any ideas how to go about this? Or any suggestions of another way of trying to achieve this? Is there an Xslt way to display the nodes with the ability to edit/delete them?'
Perhaps this wiki can be useful? http://our.umbraco.org/wiki/reference/code-snippets/databind-node-children
Jeroen
Thank Jeroen Breuer exactly what I was looking for.
Now to look at editing the nodes via the front-end.
is working on a reply...