How to post js string to C# in ASP.NET Core MVC
I am new to ASP and I am trying to take a string in my JS code and post it to my controller so that I can use it to query my database.
I am new to ASP and I am trying to take a string in my JS code and post it to my controller so that I can use it to query my database.
Im trying to make an admin page where if i click on the button ‘send’, the message will be sent and there will popup a bootstrap alert on the employee page.
I have already the bootstrap alert setup, the message for the first time is shown. After I close and i send a message again i dont see any alert. I think it needs to be triggered when i click on the send button but im struggling about how to do that. Hope anyone can show me a simple way.
Here is the code for the admin page to send:
I’m building an excel filter with datatable. I have collected the values of the table rows and pushed it into the filter dropdown.
I have a .cshtml view where I click a .CompChoice element, it disapears and another one shows from a specific list.
I have a page in angular and in ngOnInit function i load my data. The data loads correctly and it is shown on page, everything seems to work, the only problem is in console i get a lot of javascript errors cannot read property ‘propertyName’. Any help of how i can get rid of those errors would be appresiated.
Trying to export a datatable HTML table to CSV which I have implemented some code using Javascript but this doesnt include my column headers which I want to add in. Also I want to exclude a particular column from the export but not sure how to tweak the current code I have working:
My Web API returns 404 when called from AJAX but works well on PostMan and Swagger.
Hi I’ve added a bootstrap datetimepicker to my website but it seems like it’s not working.
I Am I missing something? or doing something wrong? Please help.The control is in a bootstrap modal but as far as I know it doesn’t restrict your accessibility which is the only reason I can think of for it not working…
I am working with asp.net MVC application. I needed to add dynamic fields for a section. I am able to add those. I am also to remove dynamic text fields from the view/UI. But I am not able to dynamically change Id/name when a text is removed.
I’ve got a set of buttons in my ASP.NET webpage that look like this: