Groups | Blog | Home
all groups > vb.net controls > october 2006 >

vb.net controls : how to trigger event with HtmlInputButton?


Sergey Poberezovskiy
10/29/2006 12:11:01 PM
Britt,

You just add an attribute to your button:
bt.Attributes.Add("onclick", "your_javascript")

HTH
[quoted text, click to view]
Britt
10/29/2006 5:31:54 PM
Hi,

I created a HtmlInputButton in the code-behind of a asp.net application like
this:
Dim bt As HtmlInputButton
bt = New HtmlInputButton
bt.ID = "bt1"
frm.Controls.Add(bt)

But there is no 'click' or 'onclick' or 'onclientclick' property. I see it
but of course nothing happen when clicking on it.
How can i link a function in Javascript to that button.

Thanks
Britt

Britt
10/30/2006 12:05:35 AM
Thanks Sergey

"Sergey Poberezovskiy" <SergeyPoberezovskiy@discussions.microsoft.com>
schreef in bericht
news:CA6046E5-BD6D-4FA1-8485-785F575C42D6@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button