PostBackUrl for BulletedList

Posted on 2007-10-08
Last Modified: 2008-01-09
Hi there,

Does anyone know how to set the PostBackUrl for the ListButtons contained in the BulletList control when DisplayMode is set to LInkButton?

Question by:CoconutTelegraph
    LVL 16

    Accepted Solution

    It looks like the only DisplayMode which allows you to select alternate destinations is the "HyperLink" mode. MSDN does not document any properties that can be used to provide the solution you require.

    See my answer to your other question for a possible solution?
    LVL 16

    Expert Comment

    It may not be the solution you want but I have searched MSDN and it appears that it is not possible to do as you have requested.

    Author Comment

    I'm pretty sure you could just iterate through the collection BulletedListControl.Controls and cast those to a LinkButton. You could then set the property PostBackUrl for each individual LinkButton. I was just wondering if there was an easier way or something I was missing.

    Author Comment

    Either way, I no longer need this solution because I implemented a better URL rewriting mechanism. Thanks for the assistance though McExp.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now