[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Eliyahu Goldin

6/21/2004 4:20:00 PM

Use ItemDataBound event for 2 things:

1. To set button caption: myButton.text =
e.Item.Cells[description_colun_number].Text; Use appropriate vb function to
take first 10 characters.

2. To setup a client-side event myButton.Attributes["onclick=<whatever you
want to change on click>"]

Eliyahu

"ruca" <ruuca@iol.pt> wrote in message
news:OAN2tf4VEHA.1340@TK2MSFTNGP10.phx.gbl...
> Hi gurus,
>
> I have a datagrid with a linkbutton to see details of a specified item of
> the grid. What I want to do is to change the caption of this button to the
> first 10 caracteres of the field present in my Database. This field is a
> description field. Then when I click in one of the button the description
> field appears completed.
> How can I do this or where can I get some examples?
>
>
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
>
>