EditCommandColumn problem!!

Discussion in 'ASP .Net Building Controls' started by Sachi, Jun 2, 2005.

  1. Sachi

    Sachi Guest

    Hi,
    I am trying to embedd image to "update" and "cancel" button in
    editcommandcolumn which I add dynamically in my control.

    So when I use this with just a image, I can get the output as

    output1:

    <Image>Update <Image>Cancel

    But if I want to use further more style.
    So when I use <span> or <DiV> tag it is showing like

    output2:

    <Image>Update
    <Image>Cancel

    I do not want this 2nd behaviour.
    Can anyone give me a soultion to get me as in my first output1?


    Thanks in advance,
    Sachi
     
    Sachi, Jun 2, 2005
    #1
    1. Advertising

  2. Put them into a table

    --
    Best regards,
    Sergey

    "Sachi" <> wrote in message
    news:...
    > Hi,
    > I am trying to embedd image to "update" and "cancel" button in
    > editcommandcolumn which I add dynamically in my control.
    >
    > So when I use this with just a image, I can get the output as
    >
    > output1:
    >
    > <Image>Update <Image>Cancel
    >
    > But if I want to use further more style.
    > So when I use <span> or <DiV> tag it is showing like
    >
    > output2:
    >
    > <Image>Update
    > <Image>Cancel
    >
    > I do not want this 2nd behaviour.
    > Can anyone give me a soultion to get me as in my first output1?
    >
    >
    > Thanks in advance,
    > Sachi
    >
     
    Sergey Polyakov, Jun 3, 2005
    #2
    1. Advertising

  3. Sachi

    Sachi Guest

    Currently I have it as below lines.

    ec.CancelText="<span class=btnLink title='Discard changes'><img
    src="+this.Page.AppRoot+"/Resources/Images/icon_cancel.gif
    border=0>Cancel</img></span>";

    ec.UpdateText="<span class=btnLink title='Save this record'><img
    src="+this.Page.AppRoot+"/Resources/Images/icon_update.gif
    border=0>Update</img></span>";

    How can it be put into table?


    Sachi
     
    Sachi, Jun 3, 2005
    #3
  4. I mean when you are inserting them into a column cell - insert a table into
    the column cell first and than insert each your button into a separate table
    cell.

    --
    Best regards,
    Sergey

    "Sachi" <> wrote in message
    news:...
    > Currently I have it as below lines.
    >
    > ec.CancelText="<span class=btnLink title='Discard changes'><img
    > src="+this.Page.AppRoot+"/Resources/Images/icon_cancel.gif
    > border=0>Cancel</img></span>";
    >
    > ec.UpdateText="<span class=btnLink title='Save this record'><img
    > src="+this.Page.AppRoot+"/Resources/Images/icon_update.gif
    > border=0>Update</img></span>";
    >
    > How can it be put into table?
    >
    >
    > Sachi
     
    Sergey Polyakov, Jun 6, 2005
    #4
    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. RobS

    EditCommandColumn validation

    RobS, Dec 8, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    1,409
    Peter Blum
    Dec 11, 2003
  2. Rick
    Replies:
    1
    Views:
    492
    Richard Ryerson
    Feb 2, 2004
  3. Richard Ryerson
    Replies:
    0
    Views:
    2,647
    Richard Ryerson
    Jan 28, 2004
  4. George Durzi

    CausesValidation of editcommandcolumn

    George Durzi, Feb 12, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    986
    George Durzi
    Feb 12, 2004
  5. angus
    Replies:
    1
    Views:
    539
    angus
    May 14, 2004
Loading...

Share This Page