-1

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"?

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325
user2103335
  • 63
  • 4
  • 13

1 Answers1

0

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.

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325
  • The issue is that the text is "message from the webapp" comes in the header of the message box. My question is how to improve this text and give another text – user2103335 Mar 09 '14 at 12:54
  • Not possible. See this answer: http://stackoverflow.com/questions/1905289/how-to-edit-a-javascript-alert-box-title – Patrick Hofman Mar 09 '14 at 16:14
  • @user2103335: Do you need more help? If not, please close this question by marking it as answered. – Patrick Hofman Mar 18 '14 at 13:23