Change text

  • Thread starter Thread starter ruca
  • Start date Start date
R

ruca

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?
 
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
 
Back
Top