EditCommandColumn problem!!

S

Sachi

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
 
S

Sachi

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
 
S

Sergey Polyakov

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top