473,504 Members | 13,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataBinder.Eval Problem

Text='<%# DataBinder.Eval(Container.DataItem, "price", "(0:c2)") %>'

Produces (0:c2) in the output column

Text='<%# DataBinder.Eval(Container.DataItem, "price") %>

Produces xx.xx00 in the output column

What's wrong?

I note that in my "Currently insalled progams" I have

Microsoft .NET Framework(English) v1.0.0375 (no size listed)
Microsoft .NET Framework 1.0 Hotfix (KB886906) Size 1,721.00MB
Microsoft .NET Framework 1.1 Size
1,721.00MB
Microsoft .NET Framework 1.1 Hotfix (KB886903) Size 1,721.00MB

Would this have anything to do with my problem? Should I uninstall the first
2 items of the list above?

Thank you....
Nov 21 '05 #1
2 1476
Bruce,
Have you tried:
Text='<%# DataBinder.Eval(Container.DataItem, "price", "{0:c2}") %>'
Note the use of the curly braces {} instead of parathesis ().

Hope this helps
Jay

"Bruce A. Julseth" <br***********@attglobal.net> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl... Text='<%# DataBinder.Eval(Container.DataItem, "price", "(0:c2)") %>'

Produces (0:c2) in the output column

Text='<%# DataBinder.Eval(Container.DataItem, "price") %>

Produces xx.xx00 in the output column

What's wrong?

I note that in my "Currently insalled progams" I have

Microsoft .NET Framework(English) v1.0.0375 (no size listed)
Microsoft .NET Framework 1.0 Hotfix (KB886906) Size 1,721.00MB
Microsoft .NET Framework 1.1 Size
1,721.00MB
Microsoft .NET Framework 1.1 Hotfix (KB886903) Size 1,721.00MB

Would this have anything to do with my problem? Should I uninstall the
first
2 items of the list above?

Thank you....

Nov 21 '05 #2

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:e6*************@TK2MSFTNGP12.phx.gbl...
Bruce,
Have you tried:
Text='<%# DataBinder.Eval(Container.DataItem, "price", "{0:c2}") %>'


Note the use of the curly braces {} instead of parathesis ().

Hope this helps
Jay

"Bruce A. Julseth" <br***********@attglobal.net> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl...
Text='<%# DataBinder.Eval(Container.DataItem, "price", "(0:c2)") %>'

Produces (0:c2) in the output column

Text='<%# DataBinder.Eval(Container.DataItem, "price") %>

Produces xx.xx00 in the output column

What's wrong?

I note that in my "Currently insalled progams" I have

Microsoft .NET Framework(English) v1.0.0375 (no size listed) Microsoft .NET Framework 1.0 Hotfix (KB886906) Size 1,721.00MB
Microsoft .NET Framework 1.1 Size
1,721.00MB
Microsoft .NET Framework 1.1 Hotfix (KB886903) Size 1,721.00MB

Would this have anything to do with my problem? Should I uninstall the
first
2 items of the list above?

Thank you....



Curly braces was the problem.. THANKS!!!!!!!!!!

Bruce
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3802
by: Michelle Keys | last post by:
Subject: DataBinder.Eval Error! Server Error in '/MSPOS' Application. ------------------------------------------------------------------------ -------- DataBinder.Eval:...
2
10131
by: Tom Lee | last post by:
Hi all, I have the following problem and I cannot solve it. If anyone can help me solve this problem. I use the following code <%#DataBinder.Eval(Container.DataItem, "Property")%> to display...
5
724
by: bg | last post by:
Hi! How do I check if "date" exists before using that code? I've built a RSSreader and sometimes there's a date in it and sometimes not. How can I check if it exists to avoid crash...
4
2478
by: Søren Lund | last post by:
Hello, I am trying to bind a DataGrid with some data from a DataSet which contains fields in the form "group.fieldname". I am certain that my data source contains the field but I cannot get my...
1
2222
by: Mike Lerch | last post by:
Pretty much, TSIA, but I'll expand a bit: I'm still trying to get my head around the n-tier approach to web design. It seems to me that when you use DataBinder.Eval in the ASPX that your tiers...
3
2251
by: Eric Newton | last post by:
Given databinding an array of System.Version types: Given that "SomeObject" type has a Version property: public class SomeObject { public Version Version { get; } public string Description {...
2
11138
by: Oleg Ogurok | last post by:
Hi all, I have a DatePicker ASP.NET control that allows users to enter date (e.g. a calendar control). The control has the following property public DateTime Value { get; set; } I've placed...
3
2540
by: Mark Jones | last post by:
I am quite new to ASP and .Net development and I am building a web-based multiple choice exam application. The web page displays the questions using a Repeater control and the answers are nested...
4
7327
by: CharlesA | last post by:
a general question... I'm a bit mystified by Databinder.eval(object, Colname, ) if controls can be bound to their individual data sources within the load event of the page... why would we ever...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.