Sorry for the confusion.
All I want to do is have a user select an image (generated from a
stored procedure from the database), grab the appropriate prodID
associated with that image, and then pass that prodID to the
details.aspx page, which will then pull the records associated with
that product (e.g. Description and Price as below)
Let's say for simplicity that its a database of one table, something
like this:
tblProducts
========
prodID ImageURL Description Price
1 ,,/prod1.jpg product1 $25.00
2 ../prod2.jpg product2 $30.00
etc.
A. So the image on the starting master.aspx page is from a stored
procedure and will generate the prodID associated with that image.
This part is ok (for now
)
B. The user clicks on the image. On my development box I have it
where the prodID value (e.g. 2) is passed from the image and formats
the details.aspx URL as ..
http://..../details.aspx?prodID=2 and opens a
new window........
C. The details.aspx page takes the parameter from the URL, say "2" in
this example, and then executes a SQL Query: "SELECT prodID,
descirption, price FROM tblProducts WHERE prodID=2"
What I don't understand is how to use a SQL parameter with a stored
procedure to pass a value, (e.g prodID=2 or "2") to a new HTML page
that will know what to do with that parameter. I only know how to do
it as demonstrated in item "C" above.
How does the value you get returned from the stored procedure relate to
opening a new HTML page with that value as the basis for data
maniupulation on the new page?
Thanks for your help and patience!