How can a table be updated in HTML with Dreamweaver using ASP on a dropdown functionality?

I can only have the table bring in a table with the pageID of 1 and will not change when dropdown changes.

How do I start the programming of getting every record with a specific pageID