Rank: Member Groups: Member
Joined: 5/2/2008 Posts: 16
|
Hello. If I understood correctly, we use OnToolbarItemClick event to trigger a client-side script (JavaScript). Then, according to the button that was clicked, we redirect the code to the appropriate logic.
Question 1: Is there a way to fire an event that would trigger a C# function instead? Question 1.1: If not, how could my JavaScript function call a C# function in my code behind?
The difficulty will be to go from client to server side but there must be some workaround. Any idea?
Question 2: in the Properties of the Toolbar control (not EO's but VS's properties) there is a server side ItemClick event. Can this one be used and could anyone give me an example?
Thanks,
Frank
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You need to set the ToolBar's AutoPostBack to true. That way the toolbar will call your server side ItemClick event directly.
Thanks
|