Cast to unit.pixel?

G

Guest

Hi,

<asp:TableCell BackColor="#000066" ID="tblcell" Width=?/>

? = source from database

The problem is, i dont know how to cast the data(from source) to unit.pixel.

Have any ideas?

Or have anyone know to set source to the table's width (which is in the
datagrid) by coding with vb.net?

Your help will be appreciated.

Best regards,
GL
 
A

Andrea Zani

Daniel said:
Hi,

<asp:TableCell BackColor="#000066" ID="tblcell" Width=?/>

? = source from database

The problem is, i dont know how to cast the data(from source) to
unit.pixel.

Have any ideas?

<asp:TableCell BackColor="#000066" ID="tblcell" Width='<%#
Unit.Pixel(Convert.ToInt32(DataBinder.Eval( Container.DataItem,"width"))
%>' />
 
G

Guest

Thank you Andrea.

Best Regards,
GL

Andrea Zani said:
Daniel said:
Hi,

<asp:TableCell BackColor="#000066" ID="tblcell" Width=?/>

? = source from database

The problem is, i dont know how to cast the data(from source) to
unit.pixel.

Have any ideas?

<asp:TableCell BackColor="#000066" ID="tblcell" Width='<%#
Unit.Pixel(Convert.ToInt32(DataBinder.Eval( Container.DataItem,"width"))
%>' />

--
AZ [Microsoft - .NET MVP]
Mia Home page: http://ciclismo.sitiasp.it
Asp.Net community: http://www.aspitalia.com
Il mio blog: http://blogs.aspitalia.com/az
 

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,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top