You are here:   Home
Register   |  Login

Captured Technology - Blog

Minimize

Add Hyperlinks to an ASP.Net BulletList

Mar 4

Written by:
3/4/2009 3:30 PM  RssIcon

Add Hyperlinks to an ASP.Net BulletList

I had the need to add hyperlinks to an asp.net server bulletlist today and found some very good examples online including the following example. This example defines a datasetdatasource as an xml file and them loads the values of the xml file into the bulletlist with hyperlinks included. Easy implementation and clear separation of the control and the data to be displayed by the control.

<form runat="server">
   
       <asp:bulletedlist id="BulletedList1" runat="server"
        displaymode="HyperLink"
        datasourceid="Datasetdatasource1"
        datatextfield="Name"
        datavaluefield="Url" />
    <br />
   
    <asp:datasetdatasource id="Datasetdatasource1" runat="server"
        datafile="NavigationMenu.xml" />
           
</form>
 
<!-- NavigationMenu.xml -->
 
<?xml version="1.0" encoding="utf-8" ?>
<QuickLinks>
    <QuickLink>
        <Name>Whidbey @ ASP.NET</Name>
        <Url>http://www.asp.net/Whidbey</Url>
    </QuickLink>
    <QuickLink>
        <Name>ASP.NET Dev Center</Name>
        <Url>http://msdn.microsoft.com/asp.net/</Url>
    </QuickLink>
    <QuickLink>
        <Name>.NET WebLogs @ ASP.NET</Name>
        <Url>http://weblogs.asp.net</Url>
    </QuickLink>
    <QuickLink>
        <Name>ASP.NET Web Matrix</Name>
        <Url>http://asp.net/WebMatrix</Url>
    </QuickLink>
</QuickLinks>

Tags:
Categories:

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel 

FaceBook

Minimize

Mobile Version

Minimize
Add CapturedTech - Technology Mippin widget

Translate

Minimize

Sponsors

Minimize
Fast and Free Expedited Shipping on orders over $59 offer applies to Bookbyte inventory only - 160x600 banner

Recent Comments

Minimize
Re: Three Benefits to Using a Royalty-Free Image on Your Website or Blog
Don't pay for royalty free images. They are free after all! I offer links to 96 websites that have tens of thousands (maybe even hundreds of thousands) of absolutely free images, including ones for commercial use! All you need to do is subscribe to my blog at www.davesinternetmarketing.info/royalty-free-images-free-for-commercial-use/
Re: Buzzom Offers Featured User Options
This is when discovered this great new way to grow your follow list. You can pay between $10 and $100 for the number of times you want to app ar at the top of the list.
Re: Microsoft Test Bounties
I had spent a good deal of my time looking for someone to explain this subject clearly and I have really enjoyed reading your blog posts and I collected a lot of interesting things as well as I done a research on the subject and learn most peoples will agree with your blog.
Re: 10 Ways to Source Great Sales Leads
Hoovers.com, that have contact information for tens of millions of businesses. If necessary, you can work with these companies' research teams to order lists specifically tailored to your organization's sales needs.
Re: Microsoft Test Bounties
To find bugs and showing it to microsoft is quite admirable. Keep blogging more i will appreciate.

u comment, i follow