T
Tariq Ahmad
hi,
i have a web user control that i wish to add some client-side
javascript to. something like this: onChange="javascriptoSomething();"
how can i add this and where do i need to add it? do i need to somehow
add it to my .ascx file?
i tried to add it into my HTML like below but it does not
get rendered when i do View|Source.
<uc1:TypeAheadComboBox id="cboPaymentTerm"
onChange="javascriptoSomething();" runat="server"></uc1:TypeAheadComboBox>
i also tried to add it to my .ascx file like below but this gives errors:
Protected bdBody As HtmlGenericControl
Public Sub New()
bdBody.Attributes("onChange") = "window.alert('changed');"
End Sub
any advice appreciated.
thanks.
i have a web user control that i wish to add some client-side
javascript to. something like this: onChange="javascriptoSomething();"
how can i add this and where do i need to add it? do i need to somehow
add it to my .ascx file?
i tried to add it into my HTML like below but it does not
get rendered when i do View|Source.
<uc1:TypeAheadComboBox id="cboPaymentTerm"
onChange="javascriptoSomething();" runat="server"></uc1:TypeAheadComboBox>
i also tried to add it to my .ascx file like below but this gives errors:
Protected bdBody As HtmlGenericControl
Public Sub New()
bdBody.Attributes("onChange") = "window.alert('changed');"
End Sub
any advice appreciated.
thanks.