-2

I am making a real estate website in APS.NET (web forms) where users can add property listings to the front page, as shown in the screenshot. All information in the listing is retrieved from an mySQL database.

My issue is that I want the user to be able to press "More details" and be redirected to a new page where the full information about the listing is presented. However I don't know how to check which listing was pressed and how to modify the URL of the new page based on the selected listing?

Screenshot of a property listing

Lightfox
  • 3
  • 2

1 Answers1

0

Create a page called Details.aspx in VS and use a QueryString to pass whichever PropertyID (or whatever you use to identify properties) was selected. Details.aspx would load details into its controls on Load. Here's a link regarding QueryString and there are many more elsewhere. You would use something like this: Response.Redirect("~/Details.aspx?pid=" + propertyID); to pass the ID upon redirection.

Community
  • 1
  • 1
TestWell
  • 734
  • 10
  • 19