Professional Web Applications Themes

Webcontrols toolbar question - ASP.NET General

Hi all, My app is using the toolbar webcontrol. Adding to and removing from the toolbar is fine but I want to add something like an 'onclick' event to a particular toolbaritem I'm adding to the toolbar so that it invokes a javascript function but only for that image. How do I do this? I see that the toolbar item does not have an 'attributes' attribute. Regards John....

  1. #1

    Default Webcontrols toolbar question

    Hi all,

    My app is using the toolbar webcontrol. Adding to and removing from the
    toolbar is fine but I want to add something like an 'onclick' event to a
    particular toolbaritem I'm adding to the toolbar so that it invokes a
    javascript function but only for that image. How do I do this? I see that
    the toolbar item does not have an 'attributes' attribute.

    Regards
    John.


    John Guest

  2. #2

    Default Re: Webcontrols toolbar question

    i've hacked this.
    in the designer, click on the items collection and find the toolbar item in
    question replace the text property with this beauty:
    <span onclick="SaveToDataBase()";
    style="color:blue;Border:outset;">Save</span>
    it's downhill from there.

    "John" <ab.com> wrote in message
    news:OZPqtmPVDHA.1812TK2MSFTNGP11.phx.gbl...
    > Hi all,
    >
    > My app is using the toolbar webcontrol. Adding to and removing from the
    > toolbar is fine but I want to add something like an 'onclick' event to a
    > particular toolbaritem I'm adding to the toolbar so that it invokes a
    > javascript function but only for that image. How do I do this? I see that
    > the toolbar item does not have an 'attributes' attribute.
    >
    > Regards
    > John.
    >
    >

    Alvin Bruney Guest

Similar Threads

  1. Another question to hiding navigation toolbar
    By Brody_Bach@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: April 2nd, 05:07 PM
  2. Toolbar Question
    By Scott_Brinkman@adobeforums.com in forum Adobe Indesign Windows
    Replies: 1
    Last Post: April 14th, 01:10 PM
  3. Aspx pages and webcontrols question
    By Pedro Jaraiz in forum ASP.NET Building Controls
    Replies: 1
    Last Post: February 24th, 11:00 AM
  4. Webcontrol toolbar image click question
    By John in forum ASP.NET General
    Replies: 2
    Last Post: August 4th, 04:27 PM
  5. Basic Toolbar Question
    By Melissa Bowley in forum Windows XP/2000/ME
    Replies: 5
    Last Post: July 1st, 08:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139