L
Lloyd Sheen
I have a requirement to do a server side massage of data prior to calling a
javascript function.
I have in the ItemDataBound event some code to call some javascript.
Dim lNewVariable As String = "javascript
layAudio('" + fnroot +
"')"
but.Attributes.Add("onclick", lNewVariable)
In the aspx file I have the following code:
<asp:ImageButton ID="ImageLeft" ImageUrl="~/Images/music-32x32.png"
AlternateText='<%# Eval("FileName")%>'
OnClick="SongClicked"
runat="server" />
I need to have the server code executed prior to the client code. The way
it is now the javascript runs first then the server code. I would like the
javascript to execute after the server returns.
Any ideas??
Thanks
Lloyd Sheen
javascript function.
I have in the ItemDataBound event some code to call some javascript.
Dim lNewVariable As String = "javascript
"')"
but.Attributes.Add("onclick", lNewVariable)
In the aspx file I have the following code:
<asp:ImageButton ID="ImageLeft" ImageUrl="~/Images/music-32x32.png"
AlternateText='<%# Eval("FileName")%>'
OnClick="SongClicked"
runat="server" />
I need to have the server code executed prior to the client code. The way
it is now the javascript runs first then the server code. I would like the
javascript to execute after the server returns.
Any ideas??
Thanks
Lloyd Sheen