Hey everyone,
I know we have to be able to do this, or Microsoft was stupid. How do
we get down to the very variables in the DataGrid and FormView? Lets
say I have a table to hold a product ID and the product name...
-----------------------
| ID: | Name: |
| 1 | MyProduct1 |
| 2 | MyProduct2 |
| 3 | MyProduct3 |
| 4 | MyProduct4 |
-----------------------
This is from a SQL database where "ID" is from the variable
"product_id" and "Name" is from the variable "product_name". How would
I call a function (sort of like "SELECT") where when i clicked on the
button it would be able to give me the value of the variable
"product_id" of the row I clicked. In other words, if I clicked on the
button that was next to the product called "MyProduct1" the function
would return "1" because the variable "product_id" in that row is equal
to 1.
Does anyone know how to do that in VB.NET and ASP.NET 2.0?