Click here to Skip to main content
15,892,697 members

Comments by Member 11573837 (Top 80 by date)

Member 11573837 10-Apr-22 15:25pm View    
Thank you for replaying me, i want to extacte Json noed to put it into string variable because it used in lot of place in application and th json data is more than 2000 line.
I try you solution befor but it's not accepted by my supplier because it used in lot of place like i say :/ so the solution is to extacte node
Member 11573837 22-Mar-17 14:27pm View    
Deleted
Thank you Karthik Bangalore it help (y)
Member 11573837 22-Mar-17 8:56am View    
thank you Karthik Bangalore for answering me,
it help me, i have just one qst, how can i get the info from my session, i should make cast or what ??
Member 11573837 2-Jun-16 9:21am View    
but the CompareAsync methode it was async methode, i have change the CompareAsync to sync methode and still don't return data

public async Task<List<tracking>> CompareAsync(string prevEnv, string curEnv)
{
var extensionToFind = ".svc";

IEnumerable<value> listOFSvc = await TfsHelper.GetCurrentValuesFromExtensionAsync(_defaultCollectionUrl, _userName, _token, _scopePath, extensionToFind, _apiVersion);

foreach (var svc in listOFSvc)
{
ICompareResult result = InternalCompare(svc, prevEnv, curEnv);
if (result is SucceededCompare)
{
_rsltList.Add(new Tracking()
{
Name = svc.path,
DiffGram = (result as SucceededCompare).DiffGram,
Status = CompareStatus.Success,
HasChanged = !(result as SucceededCompare).IsIdentical
});
}
else
{
_rsltList.Add(new Tracking()
{
Name = svc.path,
DiffGram = "",
Status = CompareStatus.Fail,
ErrorMessage = (result as FailedCompare).Message
});
}
}

return _rsltList;
}
Member 11573837 2-Jun-16 6:19am View    
hi John,
thank you for answering me i have added task.Wait() and i have this exception (An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that the Page is marked <%@ Page Async="true" %>. This exception may also indicate an attempt to call an "async void" method, which is generally unsupported within ASP.NET request processing. Instead, the asynchronous method should return a Task, and the caller should await it.)
and for the second solution are you proposing to me can you explain more plz
this is my code view

<script src="~/Scripts/jquery.dataTables.js"></script>
<script>
$(document).ready(function () {

$('#myTable').DataTable({
//"serverside":true,
"ajax": {
"url": "/DiffChecker/loaddata",
"type": "GET",
"datatype": "json"
//,
//"timeout": 10000

},
"columns": [
{ "data": "Name", "autoWidth": true },
{ "data": "HasChanged", "autoWidth": true },
{ "data": "ErrorMessage", "autoWidth": true },
{ "data": "DiffGram", "autoWidth": true }
]
});
});
</script>

<table class="table" id="myTable">
<thead>
<tr>
<th>Name</th>
<th>Etat</th>
<th>Error Message</th>
<th>DiffGram</th>

</tr>
</thead>
</table>