I’m trying to figure out how to get the value from the first column of selected row inside the HTML table i’m selecting the row using button created using this js code : the table is created from code behind using stringbuilder what I tried is this: then i want to get the selected row id , what i have
Tag: c#
Submit button not consistently firing
I have an asp.net core razor form with a submit button. When the user clicks ‘Update’, the form calls a JavaScript function to prompt the user if they are sure they want to complete the request. This functionality has been working, but starting last week, the form will occasionally not save despite the user confirming that they want to complete
Access to fetch at ‘https://localhost:7144/api/employees’ from origin ‘http://localhost:3000’ has been blocked by CORS policy
Im getting this error when I try to fetch data from webapi to display in react js Here is a photo when I check the console this is what I get here is my program.cs here is one of my files employee.js I believe the issue has to deal with the CORS Policy, but have tried everything. Does anything stand
Does future in c++ corresponding to promise in javascript?
I am a c++ programmer and tried to study std::future and std::promise these days. When I randomly search some information about future/promise, I found some discussion about future/promise in javascript and promise in javascript has then function. In c++, even though std::future don’t have then function now, but some proposal have mentioned it. So, there are two question: does std::future
Why does signing algorithm in C# give different result than the one in Javascript
This is the algorithm for signing the data in C# using a private key from a certificate that is used from both me and the client in order to define an unique key to identify the user: I then pass the private key to my Javascript using Bouncy Castle: This one is the algorithm used in Javascript: The signatures returned
OnClick inside anything on Modal crash it
First of all, excuse me for my level of english and for beign baerly new on this. I have this, it is a modal with a 2 gridsviews, a textbox and three buttons as you can see. The table i am hidding has a list of information from a sql data base. Appears Modal Whenever i click on a function
Populate html table or list with dynamic data from backend
I have a C# api endpoint that returns a List<Dictionary<string, object>>. The problem here is this list is dynamic, so I cannot say what the elements could be so I could populate an html list (say with angular) with it, i.e. Another data from the endpoint could have more data and different list properties, so instead of propertyName and propertyValue
Uncaught TypeError: Cannot read properties of undefined (reading ‘success’)
I am trying to resolve this next problem in which I am calling an external API to our website and embedding it into an iframe. For doing so, I am passing an addEventListener to my window so that it invokes the function changeState(state). The changeState function detects the state of the videocall from connected, closed, halted and disconnected. Also for
paging and search with ajax and partial view in asp.net core
I’m using .net core 6 and I have a table that has pagination and if the table page changes, it refreshes the page I want to change the table page without refresh using partialview and Ajax controller: userService: View: Can you tell me how to do this? Thankyou Answer Could you show your codes about partialview ? the script could
C# Replacing weirdness
I have an annoying problem with replacing in C#. I have an array with what letter i should to replace with: That’s basically a file output that splits to array Next a have this loop: That should replace it right, according to the JS Can you help me re-writing this exact thing but with C#? I don’t know what to