That's not getting hit either.
Not sure how much additional code I have to show you.
I've extended the repeater class to let me supply my own templates. Here's the one we're dealing with.
Code:
<DocumentTemplate>
<div class="divCorrespondence">
<div class="divDocument" id='<%# DataBinder.Eval(Container.DataItem, "ID") %>'>
<asp:Label ID="DocumentLabel" runat="server" Text="Document" BackColor="#CCCCFF" Width="125px" style="text-align:center;padding:5px;" />
<div class="divCorrespondenceRight">
<span>Date Added: </span>
<asp:Label ID="DocumentCreated" runat="server" Text='<%# Eval("DateCreated", "{0:MMMM d, yyyy}") %>' />
</div>
<div id="document-details"></div>
</div>
</div>
</DocumentTemplate>
And here's the full ajax call which is hitting a WCF RIA service with a Json endpoint.
Code:
function LoadDocumentDetails(div, ID) {
$.ajax({
type: 'GET',
url: '/Data/Models/CRM-Data-Services-CrmService.svc/Json/GetCorrespondenceByID',
data: { "CorrespondenceID": +ID },
contentType: 'application/json; charset=utf-8',
dataType: 'json',
beforeSend: function () {
$(div).addClass("divLoading");
$(div).html('<div><img src="Images/ajax-loader.gif" alt="Loading..." /></div>');
},
success: function (data, textStatus, jqXHR) {
//Data loaded successfully. Clear the loader and show details
$(div).removeClass("divLoading");
$(div).empty();
var results = data.GetCorrespondenceByIDResult;
var correspondence = results.RootResults[0];
var doc = results.IncludedResults[0];
var contact = results.IncludedResults[1];
$(div)
.html('<div id="corrContainer">\
<div id="corrFileContact">\
<p>' + contact.FirstName + ' ' + contact.LastName + '</p>\
<p>' + contact.BusinessName + '</p>\
</div>\
<div id="corrContent">\
<p style="float:left;"><a onClick=\'OpenRadWindow(\"../WebTwain/ViewDocument.aspx?iImageIndex=' + doc.ID + '&ImageName=' + doc.FileName + '&ImageExtType=' + doc.FileType + '\")\'>' + doc.FileName + '</a></p>\
<p style="float:right; margin-right:50px;">' + readableFileSize(doc.FileSize) + '</p>\
</div><div id="corrFooter">\
<p>Created By:</p>\
<p>' + correspondence.CreatedBy + '</p>\
<p>' + new Date(parseInt(correspondence.CreatedDate.substr(6))).format("MMMM d, yyyy") + '</p>\
</div>\
</div>');
},
error: function (jqHXR, textStatus, errorThrown) {
//An error occurred. Clear the loader and show error message
$(div).removeClass("divLoading");
$(div).empty();
$(div).html('<p><strong>An error occurred while loading the details.</strong></p>');
}
});
}