I have a page with a Rad Toolbar on it. This page is also using a master page. I am trying to call a java script from code behind on the Toolbar OnButtonClick event. The toolbar is inside a UpdatePanel.
To test my page, I added a regular asp:button to the page and put it inside the update panel and called the function, it didn't work.
Private Sub WebForm4_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim scriptManager As ScriptManager = scriptManager.GetCurrent(Me.Page)
rtb As RadToolBarButton = DirectCast(rtbPDFInvoices.FindButtonByCommandName("tbtExportPDF"), RadToolBarButton)
I read on the forums about the client events being unattached after ajax update, but I don't think this is my problem. I am using the OnButtonClick not the OnButtonClientClick.
Below is a simplified version of what I am trying to do. In the real world I need to call the java script from code behind because it only gets called if certain conditions exist.
Thank you for your help.