I need to run a piece of javascript code, and based on the result of that function, i need to execute something in .net
I tried the following method to execute the javascript code from the aspx.cs file
ClientScript.RegisterStartupScript
(GetType(), "Javascript", "javascript: hola( ); ", true);
When I go into debug mode though, and I put a breakpoint in the javascript code, the program never gets there. Thus I believe the above method to call javascript is not working. What am I doing wrong?