I am not familiar and expert of the java script. So, please help me with this command:
ScriptManager.RegisterStartupScript(this, GetType(), "Success", "alert('Error');"true);
What are the different options can be done instead of "success"?
I am not familiar and expert of the java script. So, please help me with this command:
ScriptManager.RegisterStartupScript(this, GetType(), "Success", "alert('Error');"true);
What are the different options can be done instead of "success"?
The third parameter is just a key to identify the script block.
See msdn:
public static void RegisterStartupScript
( Page page,
Type type,
string key,
string script,
bool addScriptTags
)
key
Type: System.String
A unique identifier for the script block.