Cast to unit.pixel?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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"))
%>' />
 
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

Back
Top