Search
Setup for Free
C
C#
✅ ASP.NET and jQuery + AJAX calls
Original message was deleted
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,229
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
X
x0rld
•
11/30/23, 10:54 PM
the best way is to do with controllers and return a json
X
x0rld
the best way is to do with controllers and return a json
A
Annointed
•
11/30/23, 10:55 PM
Hmm gotcha
, do you mind providing an example by any chance
?
X
x0rld
•
11/30/23, 10:55 PM
https://learn.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
X
x0rld
•
11/30/23, 10:56 PM
there is everything from controller to jquery to use it
A
Annointed
•
11/30/23, 10:56 PM
Thank you
A
Angius
•
11/30/23, 10:57 PM
This is Webforms
A
Angius
•
11/30/23, 10:57 PM
The ancient shit
X
x0rld
https://learn.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-a...
A
Annointed
•
11/30/23, 10:57 PM
It would still be okay to do it via Webforms though right
A
Angius
•
11/30/23, 10:57 PM
I don
't think WebAPI tutorial will help lol
A
Annointed
•
11/30/23, 10:57 PM
LOL
X
x0rld
•
11/30/23, 10:58 PM
you can use webapi
+ webform
A
Annointed
•
11/30/23, 10:58 PM
But I don
't need WebAPI
.
A
Annointed
•
11/30/23, 10:58 PM
I just need to populate this
A
Angius
•
11/30/23, 10:58 PM
Well
,
usually
you call an API with JS
A
Angius
•
11/30/23, 10:59 PM
It hasn
't changed since the days of olde when jQuery and Webforms were relevant
A
Angius
•
11/30/23, 10:59 PM
Excapt it used to be SOAP
, now it
's REST
A
Annointed
•
11/30/23, 11:00 PM
Gotcha
A
Angius
•
11/30/23, 11:01 PM
Maybe there is some Webforms
-specific way
A
Annointed
•
11/30/23, 11:01 PM
@ZZZZZZZZZZZZZZZZZZZZZZZZZ So in my code
-behind
, would I serialize the fileNames
, but how can I call it with the jQuery
A
Angius
•
11/30/23, 11:01 PM
Wouldn
't surprise me if there was some automagical
runat=jquery
runat=jquery
thing or someshit
A
Angius
•
11/30/23, 11:01 PM
I haven
't used jQuery in ages
, sorry
A
Angius
•
11/30/23, 11:01 PM
But you would
.
.
. get the response from the Ajax call
A
Angius
•
11/30/23, 11:02 PM
Parse it somehow
A
Angius
•
11/30/23, 11:02 PM
And use that
A
Angius
•
11/30/23, 11:02 PM
To
, uh
, add elements with jQuery
A
Angius
•
11/30/23, 11:02 PM
However that works
A
Annointed
•
11/30/23, 11:02 PM
Makes sense
, I guess I
'm just stuck on the calling part haha
, I
'll look into it more
A
Annointed
•
11/30/23, 11:02 PM
Thanks a bunch
A
Angius
•
11/30/23, 11:04 PM
Oh calling the API should be easy
A
Angius
•
11/30/23, 11:04 PM
$.get('/the/url', response => { /* do stuff */})
$.get('/the/url', response => { /* do stuff */})
if my memore serves me
runat=jquery
runat=jquery
$.get('/the/url', response => { /* do stuff */})
$.get('/the/url', response => { /* do stuff */})
Similar Threads
❔ Jquery UI Datepicker with ASP.NET MVC
C
C# / help
3y ago
HTML/CSS and ASP.NET
C
C# / help
11mo ago
Asp.net Login and Signup
C
C# / help
2y ago
✅ Auth0 and ASP.NET API
C
C# / help
3y ago