Below code is working but when I want to add 2 js commands it doesn't. For example "alert('hello1');alert('hello2');". Does anyone has any solution for this?
StringBuilder sb = new StringBuilder();
sb.Append("alert('hello1');");
ScriptManager.RegisterStartupScript(page, page.GetType(), "mesaj", sb.ToString(), true);
Hum, this works for me:
And I get/see this