Re: Drilling Down to the very Data in the FormView/DataGrid
- From: intrader <intrader@xxxxxxxxxxxxx>
- Date: Mon, 27 Jun 2005 20:07:32 GMT
On Mon, 27 Jun 2005 08:06:24 -0700, Kivak wrote:
> 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?
First, no different in 1.1 than 2.0.
It is all about Object Oriented Programming(plus the additional difficulty
of sending the info to the web).
Imagin each cell in the grid to be an element in an array of rows.
Whatever you put in the cells is an object with some representation in the
DOM (Document Object Model) at the server (there is also a DOM at the
client (but this you access at the client in Javascript).
.
- Follow-Ups:
- Re: Drilling Down to the very Data in the FormView/DataGrid
- From: Kivak Wolf
- Re: Drilling Down to the very Data in the FormView/DataGrid
- References:
- Prev by Date: RE: Response.writefile ....(file located on another server)
- Next by Date: Compiler error CS0006
- Previous by thread: RE: Drilling Down to the very Data in the FormView/DataGrid
- Next by thread: Re: Drilling Down to the very Data in the FormView/DataGrid
- Index(es):
Relevant Pages
|