473,411 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

How to use Eval or Bind with 2 values

How can I use Eval or Bind with 2 values? The following does not work:

<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='Workitem.aspx?ID=<%# Eval("ID", "{0}") %>&WID=<%# Eval("PIID",
"{0}") %>' ImageUrl="~/Images/iSelect.gif"></asp:HyperLink>

Thanks in advance,
Donald

May 22 '06 #1
1 2395
<asp:HyperLink id="Hyperlink1" Runat="server"
NavigateUrl='<%#"/admin/managenews.aspx?action=2&id="+DataBinder.Eval(Cont ainer.DataItem,"NID")+"&cid="+DataBinder.Eval(Cont ainer.DataItem,"NID")
%>' ImageUrl="/images/right.png">
</asp:HyperLink>

this may help u
"Donald Adams" <BD******@hotmail.com> wrote in message
news:9E**********************************@microsof t.com...
How can I use Eval or Bind with 2 values? The following does not work:

<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='Workitem.aspx?ID=<%# Eval("ID", "{0}") %>&WID=<%#
Eval("PIID", "{0}") %>' ImageUrl="~/Images/iSelect.gif"></asp:HyperLink>

Thanks in advance,
Donald

May 22 '06 #2

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

Similar topics

4
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
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
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
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...
2
by: Arvan | last post by:
hi,all. i wanna use Eval("DataField") to bind datarow in item template of GridView. for example: <asp:Label runat="server" id="Label1" text='<%# Eval("DataField") %>'><asp:Label> but how...
1
by: Owen Blacker | last post by:
I've spent loads of time Googling to try to work this one out and I'm sure it's something obvious. I get an InvalidOperationException reading "Databinding methods such as Eval(), XPath(), and...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
1
by: AlanJSmith | last post by:
Hi All, I am using ParseControl to load a formview contol from a string, some of the child controls are bound using Eval but these fail as Eval seems to have already been called within the parse...
2
by: John Bailo | last post by:
What's the difference between #Eval and #Bind? I built a grid view control that used Bind for display. Then I wanted to format it conditionally -- so I converted it to DataBinder.Eval() It...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...
0
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
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...

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.