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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i concatenate a value in a hyperlink

Status
Not open for further replies.

logi2000

Programmer
Jun 17, 2003
221
CR
i have a hyperlink with this properties:
Text='<%# DataBinder.Eval(Container, "DataItem.RequestID") %>'

NavigateUrl= 'Admin.aspx?RequestId='

but in the NavigateUrl i would like to have something like:

NavigateUrl= 'Admin.aspx?RequestId=123'

the hyperlink is a column in a DataGrid.

so how can i concatenate the value of the text to the Navigate to URL ?
 
How do you bind your DataGrid?

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
i bind the datagrid using a sqldataadapter.

but i found the solution, i can do somethin like this:
NavigateUrl='<%# "admin.aspx?RequestId=" + DataBinder.Eval(Container, "DataItem.RequestID") %>'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top