G
Guest
Hello All,
I am dynamically adding a Button web server control to my page with the
following code:
Dim btnView As New Button
btnView.Text = " View Form "
btnView.Attributes.Add("onClick", "javascript:ShowPdfWindow()")
AddHandler btnView.Click, AddressOf ShowPdf
plcButtons.Controls.Add(btnView)
ShowPdfWindow is defined in a script tag in the web page's <head> section.
The code does what I want it to do, except for one thing: the client script
(ShowPdfWindow) executes before the server code (ShowPdf).
Is there a way for me to reverse the order of execution?
TIA,
I am dynamically adding a Button web server control to my page with the
following code:
Dim btnView As New Button
btnView.Text = " View Form "
btnView.Attributes.Add("onClick", "javascript:ShowPdfWindow()")
AddHandler btnView.Click, AddressOf ShowPdf
plcButtons.Controls.Add(btnView)
ShowPdfWindow is defined in a script tag in the web page's <head> section.
The code does what I want it to do, except for one thing: the client script
(ShowPdfWindow) executes before the server code (ShowPdf).
Is there a way for me to reverse the order of execution?
TIA,