Search:

Type: Posts; User: Winanjaya

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    0
    Views
    1,708

    How to have a form in a dropdown-item?

    Hi All,

    How to have a form in a dropdown-item?

    html codes below shows a dropdown menu, there are 'Today' and 'Date Range' menu items, for 'Date Range' menu item, I expect to show a form in a...
  2. Re: Inject IHttpClientFactory To Create HttpClient through a class

    I had it:


    builder.Services.AddSingleton<Learning.Models.ITest, Learning.Models.Test>();
  3. Re: Inject IHttpClientFactory To Create HttpClient through a class

    Hi @peterst,
    thank you, I have tried this:





    var app = WebApplication.Create();

    using var scope =...
  4. Inject IHttpClientFactory To Create HttpClient through a class

    Hello,

    I'm trying to Use IHttpClientFactory To Create HttpClient (ref: https://www.rahulpnath.com/blog/are-you-using-httpclient-in-the-right-way/).

    program.cs



    ...
  5. How to make scrollable modal if there is a form inside it?

    Hi,

    I have a scrollable modal but it doesn't scrollable if I put a form inside it, how to make it scrollable?


    <div class="modal fade" id="assignModal" data-coreui-backdrop="static"...
  6. Replies
    3
    Views
    2,153

    Re: Why js,css,lib didn't load from wwwroot?

    Hi,


    Failed to load resource: the server responded with a status of 404 (Not Found)

    bootstrap.min.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)...
  7. Replies
    3
    Views
    2,153

    Why js,css,lib didn't load from wwwroot?

    I made a simple ASP MVC (Net Core 3.1) , I leave it as standard, and deploy it under a subfolder of the Apache (/var/www/html/myapps/app/v1)

    I started the kestrel without any errors, I access the...
  8. How to set a fixed position and freeze my breadcrumb in the body of the HTML?

    How to set a fixed position and freeze my breadcrumb in the body of the HTML below, so it will not scrollable?


    <body>

    <div class="c-subheader justify-content-between px-3">
    ...
  9. How to prevent page flickering and no loader?

    Hi,

    I'm trying to refresh a dashboard on my home page, the page is flickering with a loader, how to prevent it?





    $.ajax({
    type:...
  10. How to update the client's object properties in ?

    I'm developing a dashboard web app (ASP MVC Net Core 3.1), like the common dashboard app, some info will be processed at the backend and will update the dashboard periodically.

    example: Monitoring...
  11. Replies
    1
    Views
    4,045

    how to concatenate the above HTML code

    Hi,

    I have an HTML like below:


    `<input type="checkbox" class="editor-is_supervisor" onclick="myfunc(this)" id="${idx} " />`;

    and I have a variable call 'status'

    var status = 'checked' ...
  12. how to display the 'Status' side by side with the Switch?

    Hi All,

    I'm learning HTML, I have HTML code below, how to display the 'Status' side by side with the Switch?


    <div>
    <label>Status</label>
    <label class="c-switch...
  13. How to disable user's browser back-button after they logged-out?

    Hi,

    I use ASP MVC Net Core 3.1, I am expecting to disable the browser back button after the user logged out, my Logout code is below, it goes there but the user's back button still functioning,...
  14. Re: Do I have a correct understanding of TaskContinuationOptions below?

    yes, because I have to make sure that the previous task is returning true before continuing to next process
  15. Do I have a correct understanding of TaskContinuationOptions below?

    Hi All,

    Do I have a correct understanding of TaskContinuationOptions below?

    Scenario:

    1. Processing_OrdersAsync -> is to process an order, and if it returns true (to t2)
    2....
  16. Replies
    4
    Views
    2,379

    How to protect .dll?

    Hi,

    I'm developing a class lib (C#, Netcore 3.1) that especially I develop for a project, is there any way to protect my .dll so the other would not able to see the methods and properties inside...
  17. why I still receiving Null when calling GetManifestResourceStream?

    Hi,

    I have files in the Resources folder and I have set the Build Action to Embedded Resource, why I still receiving Null when calling GetManifestResourceStream?



    var assembly =...
  18. Replies
    1
    Views
    1,730

    How to call backend code from js?

    Hi

    I’m new to ASP NET MVC (NetCore 3.1), how to call a method from js?



    Public async Task(int) Mytest(int _i)
    {

    return _i*5;
  19. Re: does my database connection is closed properly?

    Thanks, I am investigating my code, does my connectionstring is correct?

    Server=gps.xxx.xxx;Database=xxx;User ID=postgres;Password=xxxx;
  20. does my database connection is closed properly?

    Hi,

    I am facing FATAL: sorry, too many clients already in postgresql-12.

    I need advice about database connection, does my code below already close the database connection properly?



    ...
  21. Re: How to set the property name of an object based on a variable?

    I have a string variable named _media, it will contain "video", "image", "audio", etc. I also have an object named _params (see below, there is a property named _media), I expect to have it...
  22. Re: How to set the property name of an object based on a variable?

    simple:

    string _media = "image";

    can I do the following?



    var _params = new
    {
  23. How to set the property name of an object based on a variable?

    How to set the property name of an object based on a variable?

    I expect the following, the _media_type is a variable that can contain "video", "image", "file" etc



    ...
  24. How to correctly deploy ASP MVC Net Code 3.1 project into a subfolder of apache

    How to correctly deploy ASP MVC Net Code 3.1 project into a subfolder of apache (CentOS 7)?

    Apache's default folder is /var/www/html and I want to deploy it in /var/www/html/myapp, so I can expect...
  25. Why does my ASP.NET Core MVC app run in the wrong wwwroot path?

    Hi All,

    My DocumenRoot folder is on /var/www/html (CentOS 7.4)

    I install my ASP.NET Core MVC (Net Core 3.1) app in subfolder /var/www/html/mya/app/v1 (I expect to access it from internet using...
  26. Re: How to call another Web API within Web API?

    sorry.. I forgot it.. :(
  27. How to call another Web API within Web API?

    Hi All,

    How to call another Web API (the same box or other box) within Web API?, codes below does not work

    [HttpPost]
    [Route("/B2B/Core_RegistrationAsync")]
    [AllowAnonymous]...
  28. Replies
    5
    Views
    4,427

    Re: How to read .cer file?

    I successfully convert pfx to cer file using

    openssl pkcs12 -in mypfx.pfx -out certificate.cer -nodes

    so I also don't know whether produced .cer file is compatible with x509 or not.. :(
  29. Replies
    5
    Views
    4,427

    Re: How to read .cer file?

    I successfully convert pfx to cer file using

    openssl pkcs12 -in mypfx.pfx -out certificate.cer -nodes

    so I also don't know whether produced .cer file is compatible with x509 or not.. :(
  30. Replies
    5
    Views
    4,427

    How to read .cer file?

    Hi All,

    How to read .cer file in Net Core 3.0?

    I tried:



    string cer = @"D:\\Downloads\\certificate.cer";
  31. Replies
    1
    Views
    1,576

    SmtpClient send with X509Certificate2

    Hi,

    I am trying to send email with digitally signed using SMTPClient, but no luck :(



    SmtpClient client = new SmtpClient(Email.server, Email.port);
    client.Timeout = Email.timeout;...
  32. Replies
    1
    Views
    1,416

    PostAsync returns UnAuthorized

    Dear All,

    I am facing strange problem, I am pretty sure with my token (I tried it using Postman)..but it does not work with my C# codes below:

    Env: ASP.NET Core 2.2




    try
  33. Replies
    1
    Views
    1,286

    need help in json

    Hi,

    I have a _paged_City_Statelist



    _paged_City_State[0].Range="\"city\":\"REDMOND\",\"state\":\"WA\"";
    _paged_City_State[1].Range="\"city\":\"Alex City\",\"state\":\"AL\"";
  34. Replies
    4
    Views
    8,450

    Re: How to HTTP GET Request with a Body?

    finally, I got it!...

    Netframework does not support this capability.. but Net Core does! .. (tested on Net Core 2.2)



    public async void Post([FromBody] string value)
    {
    ...
  35. Replies
    4
    Views
    8,450

    Re: How to HTTP GET Request with a Body?

    finally, I got it!...

    Netframework does not support this capability.. but Net Core does! .. (tested on Net Core 2.2)



    public async void Post([FromBody] string value)
    {
    ...
  36. Replies
    4
    Views
    8,450

    Re: How to HTTP GET Request with a Body?

    I know this is not make sense, but our B2B party requires it..
    I tried to use codes below.. but not working




    List<String> _calcs = new List<String>();
    _calcs.Add("fill_count");...
  37. Replies
    4
    Views
    8,450

    How to HTTP GET Request with a Body?

    Dear All,

    How to HTTP GET Request with a Body?
    some of our B2B Web API requires GET request but with a Body..

    any body please help?

    thanks a lot in advance

    Regards
  38. Need info - postcard / card / coupon drag and drop designer

    Hi,
    I want to have a postcard / card / coupon drag and drop designer features in our ASP.Net project (Net framework 4.6.2).

    Can anybody please give some suggestions, if there is any library or...
  39. Re: how to read SQL server pivot table using C# code?

    this query save my time :)

    sql = "Select Benefit,MVBenefitCategory, [" + insuranceName1 + "],[" + insuranceName2 + "], [" + insuranceName3 + "] From (Select * From...
  40. [RESOLVED] how to read SQL server pivot table using C# code?

    Hello,


    I have SQL pivot query as below:




    string sql = "Select * From (Select c.MVBenefitCategory,b.CompanyName As InsuranceName, MVBenefit_ID as Benefit, " +
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width