Okay so I have a index page. When you click on a link, it passes a #value through to a Details page. This Details page should show only the details of the movie from the database with the value = movieID. href=”~/Home/Detailsemail@example.comID” is the line from the index page. So that aspect works a treat. I can’t seem to get the Details page to show only that movieID data.
So with the above, it’ll display every movieID but the docWrite(parseInt(hashValue)); line will print the correct has value. I’ve been trying to get the query to use the hashValue, or trying to have it only display is movieID=hashValue but I keep running into “variable not in context” errors. The script has variable doesn’t want to share into the html.
Index.html link –> Value into Hash of Details.html –> Display only the movieID that equals the hash
Is what I want to achieve, but it won’t let me use the script variables in the SQL Query or HTML.