PC Review


Reply
Thread Tools Rate Thread

Cast to unit.pixel?

 
 
=?Utf-8?B?RGFuaWVs?=
Guest
Posts: n/a
 
      16th Aug 2005
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

 
Reply With Quote
 
 
 
 
Andrea Zani
Guest
Posts: n/a
 
      16th Aug 2005
Daniel <(E-Mail Removed)> ha scritto:
> 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


 
Reply With Quote
 
=?Utf-8?B?RGFuaWVs?=
Guest
Posts: n/a
 
      16th Aug 2005
Thank you Andrea.

Best Regards,
GL

"Andrea Zani" wrote:

> Daniel <(E-Mail Removed)> ha scritto:
> > 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
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to cast object of type 'System.Web.UI.WebControls.Unit' to type 'System.IConvertible'. Garro Microsoft C# .NET 3 12th Jun 2008 02:28 PM
Unit.Pixel to String shapper Microsoft ASP .NET 1 15th Jun 2007 06:15 PM
Position a string by the pixel unit =?Utf-8?B?Y2xhcmE=?= Microsoft Excel Programming 3 28th May 2007 05:01 AM
processing huge bitmap pixel by pixel performance Buthrakaur Microsoft Dot NET Compact Framework 3 8th Jan 2007 08:56 AM
UNCONFIRMED info on ATI GPU for Nintendo Wii: 8 pixel pipelines, 8 MB embedded RAM, programmable T&L unit (more *possible* info on Wii hardware) AirRaid Mach 2.5 ATI Video Cards 34 3rd Jun 2006 07:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 AM.