469,934 Members | 1,895 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

Specified cast is not valid?

HI,

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

code at the above is displaying the message Specified cast is not valid.
How to cast the width's value into integer?

i already out of ideas.

any ideas?

thank you in advance.

best regards,
GL
Nov 19 '05 #1
1 1748
If the database field type is a character type (or varchar) make sure you
don't have some non numeric character or space in the field.

"Daniel" <Da****@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
HI,

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

code at the above is displaying the message Specified cast is not valid.
How to cast the width's value into integer?

i already out of ideas.

any ideas?

thank you in advance.

best regards,
GL

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tyro | last post: by
3 posts views Thread by PK9 | last post: by
3 posts views Thread by VB Programmer | last post: by
reply views Thread by Alan Z. Scharf | last post: by
3 posts views Thread by =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.