Get value from selected option and pass it to the function

Hi im making a reservation page in razor pages asp.net. On my page I have two drop downlist. One for the location other for the rooms of that specific location. I want to pass the value of that selected location to the function which shows the rooms (function is named showRoom()), so that the rooms will be shown depending on which location you selected. How do i do that with html? I tried something but didnt really work. Here is the html code

How to make bootstrap alert popup in another page when clicking on a button

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:

Why is the image not showing on the browser?

<header> <nav id="nav" class="navbar navbar-expand-sm navbar-dark mb-3 fixed-top"> <div class="container"> <a class="navbar-brand" asp-area="" asp-page="/_Layout"> <img src="Logo.png" style="width:40px;"> </a> </div> </nav> </header> Image not showing on the browser, the image is located in the same folder as the HTML file. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers … Read more

Angular ngOnInit javascript errrors when i load page, but the page works as intended

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.

Date returning asp tools?

I am trying to build an asp.net web application and I am using SQL Server as my database. So right now I am in a position where I need to have a textbox(or etc.) on my screen, where the users must enter their date of birth… but one thing I require specifically is that this input(?) must return a DateTime value in the C# page. Because the code must see this date and check if this person is older than, say, 18.
First I came up with something like this: