Button with CheckBox where text is url

2 posts, 0 answers
  1. JP
    JP avatar
    120 posts
    Member since:
    Aug 2011

    Posted 17 Oct 2012 Link to this post

    Hello,

    I have a RadButton with which is a CheckBox with text (ButtonType = ToggleButton, ToggleType = CheckBox).
    I want that the text is a link. 
    Setting the NavigateUrl isn't exactly what I'm looking for since checking will also redirect.

    How can I set up the RadButton so that the text is a link but the checkbox is not?

    Thanks!
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 17 Oct 2012 Link to this post

    Hello,

    Try the following Jquery to achieve your scenario.

    JS:
    <script type="text/javascript" src="../scripts/jquery-1.8.2.min.js"></script>
    <script type="text/javascript">
        var text = "<a href='url'> link </a>";
        $("#RadButton1 .rbText").html(text);
    </script>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top