Base solution for your next web application

Activities of "panic"

Hello, After contacting StimulSoft, I provided a sample project, and they found a solution for this problem. In the Report Viewer cshtml file, please add the below code to intercept and manually add antiforgery token:

<script>

    jsstiMvcViewer.openConnection = function (http, url, responseType) {
    
    http.open("POST", url);
    http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    http.responseType = responseType ? responseType : "text";
    http.setRequestHeader(abp.security.antiForgery.tokenHeaderName, abp.security.antiForgery.getToken());
}

</script>

.. I found some explanation in this link [https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3034])

Hello, Do you mean that instead of this:

<script src="~/view-resources/Areas/App/Views/Banking/Create.js" asp-append-version="true"></script>

If I use this:

<script abp-src ="~/view-resources/Areas/App/Views/Banking/Create.js" asp-append-version="true">

It will automatically load Create.min.js if exists, otherwise it will just load Create.js ?

Is there any documentation regarding "<script abp-src" and "<link abp-href ... />"? Many thanks,

Panayiotis.

Hello, And thank you for pointing out relevant topics. To my opinion, public website should be published under <a class="postlink" href="http://www.domain.com">http://www.domain.com</a> where admin website should be published under a subdomain like admin.domain.com. Good day,

P.

Thank you very much Aaron. Have a good day!

Answer

Thank you very much!

Hello Aliriza, Thank you for your reply. Regarding format, I am actually asking if there is a way to combine s specific format with the "L" for preserving language localization. For example something like below:

$('.date-picker').datetimepicker({
            locale: abp.localization.currentLanguage.name,
            format: 'L("dd MMM yyyy, HH:MM")'
        });

Thank you.

Oops! Only now I have seen it:<ins>_contactRepository.InsertAndGetIdAsync</ins> Thanks again. Have a good day!

Hello Aaron, Thank you very much for your suggestion. It has solved my problem. However, I am facing a next problem: As you can see from above image, the id returned after insert is not the real one. I tried using a synchronous call to insert record but without any success as i get same result. Any suggestions on how to get the real id (primary key) right after inserting a record using a repository insert or insertasync? Many thanks!

Hello, I have seen that this is possible by using abp.ajax, as you describe at <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Javascript-API/AJAX">https://aspnetboilerplate.com/Pages/Doc ... t-API/AJAX</a> .. however, i am just wondering if there is any other way. Many thanks.

Showing 1 to 10 of 17 entries