Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Databinding Question

Status
Not open for further replies.

xloop

Programmer
Nov 12, 2001
86
GB
Hi there,

How would i go about appending another string to this databinding expression:

<asp:HyperLink id=HyperLink2 runat="server" NavigateUrl='<%# DataBinder.Eval(((MobileListItem)Container).DataItem, "VehicleID") %>'>

For some reason it won't let me append any text at the start or end

I'd like to add "/fsmobile.aspx?id=" to the start of NavigateURL

I can't access the control from code as it's in a template column on a mobile control form...blah de blah :)

Many Thanks!
Rob
 
not sure this will help, this is a piece of code I use with no problems the appens to a hyperlink
Code:
							<ItemTemplate>
								<asp:HyperLink id=HyperLink1 runat="server" Text="Show" NavigateUrl='<%# "basepage.aspx?pageControl=uc_locationemployeeskills&empId=" + DataBinder.Eval(Container, "DataItem.emp_id") + "&locId=" + DataBinder.Eval(Container, "DataItem.emp_loc_id") + "&employeeName=" + DataBinder.Eval(Container, "DataItem.employeename")%>' />
							</ItemTemplate>
maybe escaping the "/"
"//fsmobile.aspx?id="
Marty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top