Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Computed Field In Typed Dataset

Reply
Thread Tools

Computed Field In Typed Dataset

 
 
=?Utf-8?B?RGF2ZSBU?=
Guest
Posts: n/a
 
      07-16-2007
I have a list box that is bound to an object data source. I added a column,
say ColumnC, to my typed data set (using the designer) and for the expression
property I entered

ColumnA + ': ' + ColumnB

When I preview the data in the designer I get exactly what I want.

Now I go over to the object data source on my web page, refresh it and
refresh the schema. I can now see ColumnC as an option for the list box's
data text field. However, when I run the page nothing shows up in the list
box. However, when I view the page source, I see that the data value field
did render.

Next I put in a value (instead of the default DBNull) for the DefaultValue
property. After going through the whole exercise of refreshing and such
again, I run the page and the default value I put in is returned in the list
box.

Does anyone know what I missed? It must be something stupid.

Thanks ...
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Difference Between Typed Dataset and Untyped Dataset thomson ASP .Net 2 01-19-2005 08:16 AM
Converting a generic Dataset to a typed dataset William Gower ASP .Net 2 07-26-2004 10:14 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N ASP .Net 2 10-31-2003 01:05 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N ASP .Net 1 10-31-2003 02:39 AM



Advertisments