Change text

Discussion in 'ASP .Net Web Controls' started by ruca, Jun 21, 2004.

  1. ruca

    ruca Guest

    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
     
    ruca, Jun 21, 2004
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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
    >
    >
     
    Eliyahu Goldin, Jun 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Santosh
    Replies:
    1
    Views:
    941
    =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmE=?=
    Aug 2, 2006
  2. leo
    Replies:
    1
    Views:
    297
    Bob Lehmann
    Dec 5, 2005
  3. Replies:
    7
    Views:
    392
    Mick White
    Feb 2, 2005
  4. Replies:
    0
    Views:
    244
  5. apparker
    Replies:
    10
    Views:
    384
    apparker
    Apr 3, 2007
Loading...

Share This Page