Order of calling

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:playAudio('" + 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top