PC Review


Reply
Thread Tools Rate Thread

BulletedList - building the url using a field from the datasourcecontrol

 
 
benliu
Guest
Posts: n/a
 
      22nd Aug 2006
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...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort GridView without DataSourceControl Peter Microsoft ASP .NET 3 30th Oct 2008 05:49 AM
XMLDocument / XMLDataDocument + DataSet / XMLDatasource / Datasourcecontrol phl Microsoft ASP .NET 1 2nd Feb 2007 08:04 PM
Re: BulletedList inside BulletedList Stan SR Microsoft ASP .NET 0 31st Aug 2006 06:36 AM
DataSourceControl implementation and SlectParameters WT Microsoft ASP .NET 2 24th Apr 2006 05:54 PM
BusinessLogic, UI and the DataSourceControl... Rune B Microsoft ASP .NET 0 2nd Mar 2006 11:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:26 PM.