Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 17th, 2003, 01:50 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with assigning a variable from a binding

Hello.

I am DESPERATELY trying to assign a variable a dynamic value from a database record. I have pulled the record using a binding called CompanyList (it pulls company data) from a table called Company. The code to show this result is this:
<%# CompanyList.FieldValue("company_industry", Container%> (the value by the way is dining)

I want to take that value and assign it to a variable, called test, so I set my code to this:

dim test As string
test = <%# CompanyList.FieldValue("company_industry", Container)%>

the error I get is: Compiler Error Message: BC30201: Expression expected.


essentially, I want test="Dining"

Please help!!!!!







Similar Threads
Thread Thread Starter Forum Replies Last Post
ASSIGNING A JAVA SCRIPT VARIABLE TO A XSL VARIABLE SOMANATHAN10 XSLT 1 February 21st, 2007 04:26 AM
Assigning variable value from a radio button cybersnac VB How-To 0 February 14th, 2007 03:57 PM
Assigning value from variable cyberddindia Classic ASP Basics 3 November 7th, 2006 11:57 AM
Assigning a @@ROWCOUNT to a variable ioates SQL Server DTS 2 January 9th, 2004 04:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.