473,804 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BulletedList - building the url using a field from the datasourcecontr ol

I have a bulletedlist that I have databound to a sqldatasource. I am
using it with displaymode=hyp erlink. 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 objectdatasourc e instead
so that i can have full control of what the datasource returns?

Thanks...

Aug 22 '06 #1
0 1184

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

Similar topics

2
1129
by: WT | last post by:
Hello, I am trying to implement a DataSourceControl and I need to simulate the same functionality as the SqlDataSourceControl : being able to set declaratively the select parameters to use when binding a DetailView to the Selected Row in a GridView, but I have difficulties with the sample in MSDN concerning DataSourceControl, Visual Studio give me an error on the <Parameter><asp:ControlParameter...../> lines: My control doesn't accept...
6
7880
by: craptiger | last post by:
Is it possible to nest bulleted lists? I'm not overly competent at c# yet but have been given a project by my boss and it involves making a menu type control from a 3 level xml file. I've managed to build it by making one list, and dynamically adding items to it, but want to indent them by nesting lists within lists. Can anyone post a really simple example of how I might do this?
2
3980
by: Stan SR | last post by:
Hi, I need to add (dynamically) sub bulletedList to a bulletedList Ex : <ul> <li>store A <ul> <li>Europe</li> <li>Africa</li>
0
1715
by: Tony | last post by:
I want to display the text of items in a bulletedlist on multiple lines, but I can't get it working. Here is a sample version of my code below: protected void blStaff_DataBound(object sender, EventArgs e) { foreach (ListItem lstItem in ((BulletedList)sender).Items) { lstItem.Text = "A" + "<br>" + "B"; } }
1
1814
by: Bill Sexton | last post by:
I have created a custom DataSourceControl to interface to a search engine. The DataSourceControl exposes multiple views of the same data. The first is the actual search results. The other views are for information about parametric data (i.e. this state has 4 hits, that state has 6 hits, etc.) So far, I have almost everything working perfectly. I had to move the code to actually execute the search up in the the DataSourceControl. This...
6
4713
by: Nathan Sokalski | last post by:
I am creating a BulletedList and would like to use a - as the bullet. However, I could not find a way to do this using the properties for the BulletedList control. Is there a way to use a specific character for the bullet without manually adding it to each ListItem? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
1085
by: Nathan Sokalski | last post by:
I am trying to create a BulletedList with multiple levels. However, I am having trouble creating the nested lists (lists other than the top level). Could somebody please help me figure out how to create nested BulletedLists? I am assuming that there is some way to do this using the BulletedList control since it generates ul tags, which can be used to create nested lists. Thanks. -- Nathan Sokalski njsokalski@hotmail.com...
1
3038
by: Håkan | last post by:
Hi! How do you format the href field of the <a>-tag when you use a databound BulletedList in Hyperlink mode? The field in the database contains an ID that I want to use as a parameter in the url for the Bulletedlists hyperlink tag. /Håkan
0
1176
by: ngchaitra | last post by:
hi, I am using bulletedlist control and have set displaymode as linkbuttons. And binding data to that. Till here it is working fine. Now when i select some link on that it has to move to some other page. but how to do this i am not able to retrieve the text from the bulleted list. I mean based on the value present in the bulletedlist i need to write the query. But finding difficult since it does not have either a text property or...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10354
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10359
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9177
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6870
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.