i want to write message through ScriptManager.RegisterStartupScript method . but am getting error in this statement.
my code
-------
ScriptManager.RegisterStartupScript(Me, Me.GetType, "temp", ("<script language='javascript'>alert(' No data in the database ');</script>")), False)
error(in particular position)
-----
, False) error - end of the statement expected
scriptmanager Error 'System.Web.UI.Page.Friend ReadOnly Property ScriptManager As System.Web.UI.IScriptManager' is not accessible in this context because it is 'Friend'.
Help me to correct the problem. am new to javascript
Strange message, can you try the following: