How can I call a javascript function from code behind?
The most popular response is "ScriptManager.RegisterStartupScript
" however, that does not work in my situation.
I have a vb class that is doing a database check to see if a record exists. If exists, then call a javascript function to display an alert("Record exists")
So I am doing something like
Dim strMessage as string = "javascript:RecordExists('Param');"
How do I call this function from my vb.net class?
See Question&Answers more detail:os