Hi Senthil,
Here is the code:
Dim override As Microsoft.Web.UI.WebControls.ToolbarButton =
toolClaim.Items.Item(2)
override.ImageUrl = Session("ImagePath") & "override.jpg"
override.ToolTip = "Override"
override.Text = "<span onclick=""alert('Tester');""></span>"
Now the ImageURL as well as the ToolTip is working fine. I can see the span
section if I 'view source' on the html page but it doesn't execute. I know
it's not security settings since I have alerts that work throughout my app.
Any help appreciated . . .
Regards
John.
"Senthil Kumar" <Mindtree Consulting, India> wrote in message
news:37**********************************@microsof t.com...
Hi,
I tried the same code ( SPAN tag on click), it works fine. can u post
the exact
code, so we can get a clear picture.
Thanks,
Senthil.
"John" wrote:
Hi all,
I have a web toolbar and a few buttons on it. On one of the buttons, I
need to execute some Javascript. I did put <span
onclick="javascript:alert('test');"></span> in the text property but
this does not work.
How can I execute some Javascript from one of these buttons?
Regards
John.