This is used in .cs page of asp.net. Please explain the meaning of the following code:
Page.ClientScript.RegisterStartupScript(this.GetType(), "'" + scriptKey + "'", ValidationScript.ToString(), false);
It registers a javascript block that will execute when the page has finished loading. The first two arguments are used to idenfity the script (only one startup script with the given type and key can be registered in the page.
Please read this - http://msdn.microsoft.com/en-us/library/aa479390.aspx
For a detailed explanation, just check msdn: msdn.
But basically all that happens is, the javascript gets registered on the page, and the type/key combination is used, to make sure, there won't be any duplications.