1,314 questions
0
votes
2
answers
65
views
How to get response errors from webforms WebMethod in production?
I'm working on a .NET Framework 4.8 project using Web Forms (the one with .aspx pages). During development, I used a WebMethod tasked with fetching and validating data, returning either a success (...
0
votes
0
answers
47
views
change in one dropdownlist according to another dropdownlist by ajax in asp.net
I have two dropdownlist one with name and another with contactno on selecting name corresponding contactno want to show by ajax in .net.
Here is my load event [ in which dropdown is bind ]
service....
1
vote
0
answers
26
views
The length of the string exceeds the value set on the maxJsonLength property in asp.net C# [duplicate]
I want to show image through ajax by web method.
<asp:Image Height="200px" Width="200px" runat="server" ID="img_Product" CssClass="col-md-2 control-...
0
votes
1
answer
57
views
Getting undefined value by ajax success data in asp.net
I am calling function from .asmx.cs file by ajax web method. Now, I am getting output undefined value in ajax success.
Here is my code,
<input type="button" id="btnGetStock" ...
0
votes
1
answer
74
views
Page Method returns undefined response
I am using Visual Studio 2022 for a .NET 4.7.2 project.
I created a simple page to make use of web method it's not working for me. Even the breakpoint is not being hit in web method.
I get undefined ...
0
votes
0
answers
71
views
The time it takes for PageMethod to be received by code behind is not consistent
I am quite new to webpage development.
I have a ASP .NET Web Application. On my webpage, I have several controls, that when clicked, will call a PageMethod to the code behind. My concern is, when I ...
0
votes
1
answer
1k
views
Refused to connect to ‘http://localhost:5555/’ because it violates the following Content Security Policy directive: “connect-src ‘self’ https:”
Issue I’m facing now is, one of our custom Portlet which trying to establish the connection from Portal to ESB server we’re getting error on the console as “Refused to connect to ‘http://localhost:...
0
votes
1
answer
702
views
Getting error from web service method after publish "Maximum response size reached"
Published GetDocument Web Method and it will return the File Name along with File Content, which is Base64 text of the File and it's working fine. But when we request more than 120MB file getting ...
1
vote
0
answers
118
views
Different sessions created when page is called by external application as a return URL
I have an ASP.Net web apps application. Where I am using session to save a data. The application calls an external application where user can select a value and the selected value is stored in an ...
0
votes
2
answers
491
views
send string from c# windows form application to asp.net web server
i have a table in ms-access database
i create DataTable using select query
then convert DataTable to json and then i compress json because raw json size is 13mb
now i want to send this compressed json ...
0
votes
1
answer
484
views
Exception while trying to zip files
I have a little issue with a Java service that I call in a Webmethod Flow.
I call it with 2 args filepath and filename and retrieve the archive's filepath.
This service is supposed to be call when I ...
0
votes
1
answer
222
views
Error 302 when passing multiple parameters via AJAX to ASP.NET WebMethod
I'm trying to pass three parameters to a WebMethod using AJAX in an old ASP.NET web application (NET Framework 4.6.2 project).
Note: I cannot use a form, so the three controls (id, date and ...
0
votes
1
answer
790
views
What is happening when i pass a date string as response to the Jquery Ajax Call from WebMethod
I attempted to pass a date as a response from the webmethod via a jquery AJAX call. and the time is in GMT/UTC format oct 26 2021 12:01 am. However, the AJAX response contains /Date(1635264118393)/, ...
0
votes
1
answer
932
views
ASP.NET Request time out calling an async webmethod in ASMX from jquery
I can't figure this out in days. I have tried everything. I have to change my cloud storage so I'm trying to refactor. First of all, I'm using MinIO in an intermediate class to connect the storage.
...
1
vote
2
answers
6k
views
Getting Error: 500 Internal server error when using AJAX POST to C# Webmethod
var image = document.getElementById("capture").toDataURL("image/png");
image = image.replace('data:image/png;base64,', '');
alert(image);
$.ajax({
type: 'POST'...
0
votes
1
answer
4k
views
cannot read property of undefined (reading 'ajax')
I can't access webmethod within javascript. It gives the error in the title. Why might it be caused?
Js :
function funcGoster() {
$.ajax({
type: "POST",
...
0
votes
2
answers
616
views
Return html page in webmethod inside iframe multiview c#
Hi i want to display html page from DB using web method on anchor tag click. I get html from db but not able to display inside iframe. The html page is stored in binary format which i will be ...
0
votes
1
answer
207
views
Call Webmethod to Fill DropDownList
I want to fill the DropDownList via SqlQuery in webmethod. But it gives internal Server error.
Except for the error, can't I just do this in javascript?
function doldur() {
$.ajax({
url: &...
1
vote
2
answers
1k
views
How to add a [WebMethod] file for WebService1.asmx?
I have a project with server side in C#.
I'm connecting to the SQL Server and want to pass it parameters to a table.
How do I open a WebMethod file ? I can't find it anywhere
neither a WebService ...
0
votes
1
answer
99
views
In the place of image showing [object Object] when Convert Bytes To Image in asp.net
I am converting image from bytes by FromBase64String method in asp.net C# and placed in gridview field, but in gridview it showing [object object] data in the place of image.
For more clear lets see ...
0
votes
0
answers
136
views
asp.net google charts problems my project
this code does not work. what should i do please help me there is no problem in database i couldn't find the solution
Is there a problem with WebMethod? I did everything but there is something I can't ...
0
votes
0
answers
154
views
Unable to bind Grid view using jquery
I want to bind grid view using jquery, As per procedure i completed all steps. And while debugging i can see my web method returning value and in browser also i can see all data are appearing as ...
0
votes
1
answer
297
views
AJAX method not posting to web method
I have this method that uses AJAX to post data from a form to a web method in the C# backend. Unfortunately, the method is not being hit. I did my research and all accessible resources states that ...
0
votes
0
answers
49
views
jQuery - AJAX - Upload file via FormData isn't working [duplicate]
The following setup triggers the "success" event, however the response is simply the content of the aspx page.
HTML
<input id="fileInput" type="file" />
<button ...
1
vote
0
answers
153
views
How to use events fullCalendar plugin
I'm using an html template with plugin fullcalendar. I need load event from database using events as a json feed
There are many example to do this with $.ajax but I want to use native plugin tools.
...