Welcome Guest Search | Active Topics | Sign In | Register

Events no fire! Options
Alejandro
Posted: Thursday, April 16, 2009 8:11:54 PM
Rank: Newbie
Groups: Member

Joined: 4/15/2009
Posts: 1
I've problems when I can put code in any events (client or server side), NO FIRE.

For example:

<eo:Menu ID="Menu1" runat="server" ClientSideOnItemClick="alert('hola')"
ControlSkinID="Style1" Width="120px">
<TopGroup>
<Items>
<eo:MenuItem Text-Html="New Menu Item">
</eo:MenuItem>
</Items>
</TopGroup>
</eo:Menu>



----------- or in aspx.vb------
Parrtial Class Default2
Inherits System.Web.UI.Page

Protected Sub Menu1_ItemClick(ByVal sender As Object, ByVal e As EO.Web.NavigationItemEventArgs) Handles Menu1.ItemClick
Label1.Text = "hola"
End Sub
End Class


Regards.
eo_support
Posted: Thursday, April 16, 2009 8:34:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

In order for client side event to fire, you need to give it a function name. You can not give it code or function call like "alert('hi!')".

In order for server event to fire, you need to set RaisesServerEvent to true.

Thanks



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.