Alright I have 8 images on a page. I have a couple of companies labeled 1 through 8 and I need to drag information depending on the company from a database I have the code written for the information to come out of the database. What I need to know is how to make it so I can pass number 1 through 8 on to the other page so I can reference it in my code.
Image - click on 1 of the 8 images.
if you click on image 1 it takes the number 1 brings it to another asp page and inserts it into the while statement so only information pertaining to that company comes up. Again I have the code written for the while statement on another page I just need to pass that image number on to the while statement asp page. I know you can do this in php by using a session but is there something similar in asp? I just need the number 1 in a field so I can type.
My solution was not meant to be a complete solution. To prevent the risk of SQL injection, just make sure to check whether the query string parameter is numeric (hint: use the IsNumeric function). You can then handle a non-numeric parameter accordingly (display an error or redirect back to image selection page).