image border in datagrid

S

Stephen

Ever since I ported VB my webform to C# the images in the following
html have borders.

<asp:EditCommandColumn footerText="New Item" EditText="<img
src=images/edit.gif (border=0 alt='Edit line item'>" CancelText="<img
src=images/cancel_1.gif (border=0 alt='Cancel update'>"
UpdateText="<img src=images/save.gif (border=0 alt='Save changes'>">

The same webform using VB does not show the borders. Actually, I am
not even sure they are image borders at all, but something else. It is
a blue thick line around my image. Not sure why this would be
happening between the two languages. Any suggestions are appreciated.
 
G

Guest

Stephen why doing :- EditText="<img src=images/edit.gif (border=0 alt='Edit
line item'>"
Why not
EditText="<img src=images/edit.gif border='0' alt='Edit line item'>"

Hope it helps..
Patrick
 
S

Stephen

Good eye, I don't know how that ( got in there, but that was the
problem. Must have happened when I was doing a search and replace.
Thanks!
 

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,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top