Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 August 25th, 2004, 09:32 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Databinder.Eval

Would anyone know the syntax for evaluating the expression to multiple field names?

This works fine...
<a href='<%# Databinder.Eval(Container.DataItem,"ID","default.a spx?CategoryId={0}" ) %>'>

However, when I try...
<a href='<%# Databinder.Eval(Container.DataItem,"ID(0).genderId ent(0)","default.aspx?CategoryId={0}&Gender={0}" ) %>'>

I receive an error.


 
Old August 26th, 2004, 08:59 AM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

uh, no sorry

 
Old August 26th, 2004, 11:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

What is the data source? I don't think you can do what you are trying to do... At the least, you can't reference the same placeholder in a string ({0} is listed twice).

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Repeater without DataBinder safin ASP.NET 2.0 Professional 1 February 3rd, 2006 12:20 PM
DataBinder Eval in Repeater New2VBnetChic Classic ASP Basics 0 August 18th, 2005 12:44 PM
Eval??? tsimsha Classic ASP Basics 2 January 17th, 2005 10:02 PM
Subject: DataBinder.Eval Error! Datagrid. macupryk General .NET 0 October 3rd, 2004 02:35 PM
DataBinder.Eval(Container, etc. - Please explain pete_m ASP.NET 1.0 and 1.1 Basics 1 June 25th, 2004 11:52 AM





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