Jump to content

Recommended Posts

Posted (edited)

Hi Matt, you can view an indivdual day by putting '/#date' after the url, the same format it uses when you go forward in time:

 

eg. ..hap/bookingsystem/#25/01/2013

 

It'll show any dates that are still in the bookings.xml file. Obviously if you've got 'KeepXMLClean' on then it only keeps the last week I think. I don't know if there's a way to report a full week, although that would be a useful addition.

Edited by beneal
Posted
Thanks Nick, didn't know that existed! Unfortunately when I try it I just get a server error 'Index was outside the bounds of the array. ' Any ideas?
Posted
Ok, the index error is a strange one, try copying the file from the main release and replace it, I may of updated and not released it in the update release
Posted
Sorry, that didn't work. We started from scratch with our current install using the main release anyway so that's the version we had
Posted

Here it is:

Server Error in '/hap' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

 

Source Error:

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 

Stack Trace:

 

 

[indexOutOfRangeException: Index was outside the bounds of the array.]

HAP.BookingSystem.Booking.get_User() +637

HAP.Web.BookingSystem.WeekViewRow.RenderContents(HtmlTextWriter writer) +1321

System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +52

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315

System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Page.Render(HtmlTextWriter writer) +40

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5290

 

 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

 

And yep, loads of static bookings :)

Posted
Cheers Nick, you're right - there were a few static bookings where we'd used names other than usernames (or blanks). Have edited those and it's fine now. This is a great feature! Is there any styling I can edit to differentiate static/casual bookings?
Posted

I am getting the following error:

 

Server Error in '/HAP' Application.

 

Index was outside the bounds of the array.

 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

 

Source Error:

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 

Stack Trace:

 

 

[indexOutOfRangeException: Index was outside the bounds of the array.]

HAP.BookingSystem.Booking.get_User() +637

HAP.Web.BookingSystem.WeekViewRow.RenderContents(HtmlTextWriter writer) +1321

System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +52

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315

System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246

System.Web.UI.Page.Render(HtmlTextWriter writer) +40

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5290

 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...