I’m trying to run an AJAX Webservice request on a VB ASP.NET page. When the page loads, I’m trying to call the webservice but I get a 500 error in the console. My WebService file looks like this: My ASP.NET page looks like this: I expect the page to load and a message box to popup server side that says
Tag: asp.net
Error when trying to display an image saved in a computer file
I am developing an application which allows me to bring some files saved from another server for that I have a code made in Asp.net which I consume with Javascript to bring the image, but when I get the image to show it, the following generates me error, Not allowed to load local resource: file: /// C: /Users/usuario/Desktop/imagenes/prfil/descarga.png, but when
Show json result in Textbox ASP.Net
I want to know that how can I get the following json result in textbox instead console.log in asp.net C# ? Thx everyone Answer Try this: you can have: Sometimes your js code could be executed before the rendering of the asp.net page has been completed, so it is better to add the js to the end of the body,
Get ID and Value from a checkbox: Return to model and use in method to insert into sql database
I’m trying to create a checkbox list where a user is supposed to be able to choose one or more options, based on the choice: this is supposed to be inserted to a database table, where the id of the choice is inserted. (This is on a page where a user can “edit garage”), therefore the garageid is also supposed
In ASP.Net Core 5 MVC Controller, when passed a JSON object FromBody that contains a decimal the model is always null
Passing in this json works: Passing in this json does not work: The reason is the decimal being passed. My controller has this method It references this model: I believe the issue is in converting from the float used in javascript to the long used in C#, but I have scoured the internet and cannot work out how to get
ASP.NET Core MVC using bootstrap cards with navigation tabs in a foreach loop with many cards
My question is, is there a possibility with ASP.NET Core MVC to put all data from my database in a foreach loop in different bootstrap cards with navigation? I’ve already tried this and found that it works partially. But as soon as I click on a navigation tab from the second card, the tabs are only changed on the first
ASP.Net Webform: Add HTML and javascript dynamically
I need a ASP.net application which is only kind of “pageDisplayer” from content which is coming from an API. So I choose ASP.net Webform and tried the following: The html content and the script are loaded correct but I cannot access DOM elements in the javascript. The javascript looks like that No I get the error “form is null”. For
asp modal popup closes immediately when running it from user control
I have a user control that contains a confirm button extender and a modal popup extender. It looks like: The user control gets a dropdownlist. When changing the dropdownlist selection, the button onclick event should run. In the user control aspx.cs there is the follow code: Use the user control in aspx looks like: and in aspx.cs: This is working
Reading same textbox value each time from jquery popup
I have JQuery Popup whchi has a textbox. JQuery Popup trigger on OnClick event of a Checkbox. HTML My effort is to receive textbox value in server side C# Code and display it using an other jquery popup Server Side Code C# Problem My server side code can receive JQuery popup textbox value but every time i get the same
JQuery validate dynamically added input fields against other dynamically added input fields
I have multiple pairs of input fields for start and end dates: I’m using jQuery’s validator.AddMethod to validate that the end date is after the starting date: The problem is the validation is always comparing the end dates to the first starting date. I want each end date to be compared to it’s relevant starting date. I’m still a newbie