All Questions
17,947
questions
0
votes
1
answer
46
views
ASP.NET Core - Change Url of Product Details when select Color
I am working on E-commerce Laptop. I want when the user chooses another color in the select drop-down, it will redirect to the product of that color.
I am using JavaScript to redirect the URL, here ...
1
vote
1
answer
53
views
Change the path of images in JSON returned using AJAX
I want to change image whenever I choose the color the view so I write an Ajax to return the product of that color. Here the code :
$(document).on('change', '#colorId', function () {
GetImages(...
0
votes
2
answers
215
views
When calling ASP.NET Core 6 Web API, I get the error message 400 bad request
A little strange. If the following programs are all in the ASP.NET Core 6 MVC project, there will be no problem.
But if you separate the program. Ajax is in the ASP.NET Core 6 MVC project, and the C# ...
0
votes
0
answers
24
views
Retrieve parameters on a web page as set by click once deployment using WebClient.UploadString(). Click once launched on same web page
Can you retrieve the parameters from a web page as set in a click once deployment application with WebClient.UploadString()? The c sharp code below is how I send the parameters in the click once ...
1
vote
1
answer
106
views
jQuery + C# (.Net 8): Passing an array of form files from Ajax to Controller
I'm working on a .Net 8 API and I need to pass form data which consists of files and other form elements to the controller via ajax.
I'm being able to pass a single file successfully, but the weird ...
0
votes
1
answer
44
views
Using a spinner without Ajax
Well, I hope you can help me, this is giving me a lot of trouble
I'm using Razor with Net 8 MVC and I want a spinner to appear in two situations:
The first, before loading the page.
The second is in ...
-1
votes
1
answer
47
views
How to make a dropdown value is selected during the page load based on the values fetched from DB in .net core?
I have fixed dropdown values in the .cshtml file.
`**
Yes
No
Ask Me` like this..
I'm saving these values into the DB and during the page load I'm fetching the values and assigning into the ...
0
votes
1
answer
59
views
How to make a jQuery function work for same element in all rows of a foreach loop instead of just the first row?
I'm using ASP.net C# and I have a table for products where I have a function that gets called whenever there is a change in a dropdown list selection.
My function works perfect currently, but only if ...
-1
votes
2
answers
46
views
Call aspx.cs file function from jquery
I have button in aspx file as below :
<asp:Button ID="btnSave" Style="display: none;" runat="server" OnClick="btnSave_Click" />
Now in aspx.cs file I ...
0
votes
0
answers
36
views
Filtering Data in DataTbale ASP.NET
enter image description here I have a problem with data filtration in the table. I would like the data in the filter list to remain intact for the applied filter and to be updated in the remaining ...
-1
votes
1
answer
61
views
Using javascript getTimezoneOffset to get local time of the client with C# backend
I need to capture the timezone offset of the client and store it in my database. To do this I have been using a hidden field in the login with some Javascript :
<form class="user" id=&...
0
votes
0
answers
164
views
Using EPPlus to create an excel file
I have an ASP.NET Framework web application and I am using an .asmx webservice to create an excel file.
I make an AJAX call to the .asmx file and it should create an .xls or .xlsx to download from the ...
0
votes
0
answers
77
views
Why are my parameters always passed as null to my OnPost method?
I've got a simple function that receives a string representing the binary data of a PDF file, a filename string and an integer employee ID.
This is the function:
public JsonResult ...
0
votes
0
answers
130
views
Dropzone and ASP.NET Image Uploader: Uploaded Image is blank and has Underscore Name and Larger Filesize
"I am developing an image uploader using Dropzone in ASP.NET. I am encountering an issue where, after clicking the submit button, the uploaded image file appearing in my directory is blank ...
0
votes
1
answer
73
views
Disable Login details from being autofilled into input fields .Net Core Identity
When I want to create an account I don't want any fields being populated by chrome passwords as I have a hidden field that appears if a certain option is selected from a select. The field is shown, ...