473,657 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataBinder.Eval Problem

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

Produces (0:c2) in the output column

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

Produces xx.xx00 in the output column

What's wrong?

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

Microsoft .NET Framework(Engli sh) 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 1483
Bruce,
Have you tried:
Text='<%# DataBinder.Eval (Container.Data Item, "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******** ******@TK2MSFTN GP12.phx.gbl... Text='<%# DataBinder.Eval (Container.Data Item, "price", "(0:c2)") %>'

Produces (0:c2) in the output column

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

Produces xx.xx00 in the output column

What's wrong?

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

Microsoft .NET Framework(Engli sh) 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******** *****@TK2MSFTNG P12.phx.gbl...
Bruce,
Have you tried:
Text='<%# DataBinder.Eval (Container.Data Item, "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******** ******@TK2MSFTN GP12.phx.gbl...
Text='<%# DataBinder.Eval (Container.Data Item, "price", "(0:c2)") %>'

Produces (0:c2) in the output column

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

Produces xx.xx00 in the output column

What's wrong?

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

Microsoft .NET Framework(Engli sh) 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
3810
by: Michelle Keys | last post by:
Subject: DataBinder.Eval Error! Server Error in '/MSPOS' Application. ------------------------------------------------------------------------ -------- DataBinder.Eval: 'System.Data.Common.DbDataRecord' does not contain a property with the name REPORTTO. Description: An unhandled exception occurred during the execution of the
2
10139
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 Property from database. How do I dynamically change the value "Property" to another one say "Name" to display the Name from database or to any other variable that I want. Thanks.
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 (DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name date) <asp:DataGrid id="RssNewsGrid"
4
2486
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 head around which syntax to use when specifying which field to bind to the DataGrid. I have tried <%# DataBinder.Eval( Container.DataItem, "Group.FieldName" ) %>
1
2234
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 aren't fully separated. If you're displaying data in a DataGrid, is it appropriate to define a label in your template column as <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MyField")%>' /> or is it better to do that...
3
2261
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 { get; } }
2
11163
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 the control into a datagrid now I'm trying to bind values from database to the datagrid.
3
2548
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 within the Repeater as RadioButtonLists. Simple enough I think. My data consists of a Question table and an Answer table. The Question table has a QuestionID and a Question field. The Answer table has a AnswerID field, an Answer field and a...
4
7339
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 use this quite inelegant OO code wrapped in #<% %> inside the markup? secondly: sometimes you see simliar code inside the markup without calls to
0
8325
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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 we have to send another system

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.