BulletedList - building the url using a field from the datasourcecontrol

B

benliu

I have a bulletedlist that I have databound to a sqldatasource. I am
using it with displaymode=hyperlink. I set the datatextfield to be one
of the fields returned by the sqldatasource. However, with the url
field, i would like to build the url from one of the fields returned.
Specifically, the url is formed by setting a querystring value to the
id returned in the field:

http://localhost/news.aspx?nwId=533

So the datasource returns 533. How do i set the url field correctly?
I can't use the datavaluefield property since the url is not 533...

Is it not possible? Should i perhaps use an objectdatasource instead
so that i can have full control of what the datasource returns?

Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top