Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6824871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:57:12+00:00 2026-05-26T21:57:12+00:00

I have an MVC application with glimpse installed, I am also using the MVCControlToolkit

  • 0

I have an MVC application with glimpse installed, I am also using the MVCControlToolkit for dymanic validation.

The issue I have is when I have a view that uses DateTimeFor to display the date time calendar with validation, but only in a very limited set of circumstances (if I only have datetimefor elements this doesn’t happen), the body gets rendered on the page twice.

It looks like the rendering is getting restarted by something, but I haven’t been able to work it out.

Any help would be appreciated

My view code is

    @using LeaveTracker.Models
@using LeaveTracker.Models.Leave
@using MVCControlsToolkit.Controls
@using MVCControlsToolkit.Controls.Validation
@model LeaveTracker.Models.Leave.LeaveAllocation

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutMaintenance.cshtml";
}

@Html.AntiForgeryToken()
<div class="page-header">
<h1>    
    Edit Leave Allocation 
    @if (Model.ID > 0) { <small> @Model.TypeOfLeave.Name till @Model.AppliesUntil.ToString("dd/MM/yyyy")</small> } 
</h1>
</div>

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/base/jquery.ui.datepicker.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.min.js")" type="text/javascript"></script>
@Html.JQueryDatePickerGlobalizationScript("en-GB")
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ValidationSetup.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MVCControlToolkit.Controls-1.5.0.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {

    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Leave Allocation Details</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="clearfix">
            @Html.LabelFor(model => model.TypeOfLeave)
            <div class="input">
                @Html.DropDownListFor(model => model.TypeOfLeave, 
                       LeaveFactory.GetAllLeaveTypes().Select(fl => new SelectListItem
                        {
                            Text = fl.Name,
                            Value = fl.ID.ToString()
                        }))
                <span class="help-inline">@Html.ValidationMessageFor(model => model.TypeOfLeave)</span>
            </div>  
        </div>

        <div class="clearfix">
            @Html.LabelFor(model => model.AppliesFrom)
            <div class="input">
                @Html.DateTimeFor(model => model.AppliesFrom, DateTime.Today, true).DateCalendar(
                    inLine: false,
                    calendarOptions: new CalendarOptions
                    {
                        ChangeYear = true,
                        ChangeMonth = true
                    })                  
                <span class="help-inline">@Html.ValidationMessageFor(model => model.AppliesFrom)</span>
            </div>  
        </div>

         <div class="clearfix">
            @Html.LabelFor(model => model.AppliesUntil)
            <div class="input">
                @Html.DateTimeFor(model => model.AppliesUntil, DateTime.Today, true).DateCalendar(
                    inLine: false,
                    calendarOptions: new CalendarOptions
                    {
                        ChangeYear = true,
                        ChangeMonth = true
                    })                
                <span class="help-inline">@Html.ValidationMessageFor(model => model.AppliesUntil)</span>
            </div>  
        </div>

        <div class="clearfix">
            @Html.LabelFor(model => model.DefaultAllocation)
            <div class="input">
                @Html.EditorFor(model => model.DefaultAllocation)
                <span class="help-inline">@Html.ValidationMessageFor(model => model.DefaultAllocation)</span>
            </div>  
        </div>

    </fieldset>

    <fieldset>

        <legend>Leave Carried Over</legend>

        <div class="clearfix">
            @Html.LabelFor(model => model.MaxCarriesOver)
            <div class="input">
                @Html.EditorFor(model => model.MaxCarriesOver)
                <span class="help-inline">@Html.ValidationMessageFor(model => model.MaxCarriesOver)</span>
            </div>  
        </div>

        <div class="clearfix">
            @Html.LabelFor(model => model.LeaveUseByDate)
            <div class="input">
                @Html.DateTimeFor(model => model.LeaveUseByDate, DateTime.Parse("01/01/1900"), true).DateCalendar(
                    inLine: false,
                    calendarOptions: new CalendarOptions
                    {
                        ChangeYear = true,
                        ChangeMonth = true
                    })               
                <span class="help-inline">@Html.ValidationMessageFor(model => model.LeaveUseByDate)</span>
                <span class="help-block">The year on this field doesn't matter, only the month and day will be taken into account</span>
            </div>  
        </div>

        <div class="actions">
            @Html.ActionLink("Cancel", "Index", null, new { @class = "btn" })            
            <input class="btn primary" type="submit" value='Save'>
        </div>

    </fieldset>
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:57:12+00:00Added an answer on May 26, 2026 at 9:57 pm

    Lee,

    We believe we have fixed this issue.

    Can you please test and confirm by installing the alpha build of Glimpse 0.87 from MyGet at http://www.myget.org/F/getglimpse/

    If we get confirmation that this fixes your issue – and with a bit more testing – we will release to the main NuGet.org repository.

    EDIT
    Glimpse version 0.87 is now available from the main NuGet.org Glimpse feed

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MVC application view that is generating quite a large HTML table
I have a MVC application using .Net 4.0 and have installed it on a
I am using glimpse.mvc in an ASP.NET MVC 3 application. I have a ReportController
I have an MVC application that is using a mix of windows and forms.
I have an MVC application that among other things contains a small Silverlight menu
I have an MVC application that needs to login and verify a user against
I have an mvc application that has been coded to use Windows authentication and
I have an MVC application. The model has a property that is a struct
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I have a MVC application that I am now trying to add authentication and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.