Building JSON Results Table FROM DB

I want to take a page like this and create a JSON table so users could look up finishers based on one or more of the following search fields:
1) First Name
2) Last Name
3) Gender
4) Age
5) Bib
6) Race Participating in

All of these fields are in a sql server db will require a JOIN of three tables.

Tables:
1) Participant (First, Last, Gender) joined by ParticipantID to
2)  PartRace (Bib, Age) joined by RaceID to
3) RaceData (Race Entered)

Let me know what else I need to tell you to purt this together.
Bob SchneiderCo-OwnerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob SchneiderCo-OwnerAuthor Commented:
Oops....that should have said I want a JSON page...
0
Big MontyWeb Ninja at largeCommented:
have a look at aspJSON, it's a classic asp library that'll allow you to load data from the database and convert it to a json formatted string with one line of code
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob SchneiderCo-OwnerAuthor Commented:
Thank you!
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Big MontyWeb Ninja at largeCommented:
my pleasure, let me know if you have any questions on it, as I've used it a bunch in my projects
0
zephyr_hex (Megan)DeveloperCommented:
How are you calling your C# method which returns the results?  And what is that method's signature?


For example, if you use AJAX from your View to call a method in your controller, you can return JSON by using the following pattern:


[HttpPost]
public JsonResult MyMethod()
{
    return Json(myObject);
}

Open in new window


The JsonResult class is part of the System.Web.Mvc library.
0
Big MontyWeb Ninja at largeCommented:
@Megan -that is for asp .net, and not classic asp which is what the OP asked for.
0
zephyr_hex (Megan)DeveloperCommented:
@Big Monty - I must have missed the "classic" ASP.  Where is that indicated?
0
Big MontyWeb Ninja at largeCommented:
the tag "ASP" technically refers to classic ASP, or Active Server Pages. People sometime mistake regular ASP (which is the industry standard term) for ASP .NET
0
Bob SchneiderCo-OwnerAuthor Commented:
Thank you very much, both of you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.