Trying to convert online the following c sharp code to vb and getting the error
CONVERSION ERROR: Code could not be converted. Details:
-- line 1 col 11: invalid TypeDecl
CONVERSION ERROR: Code could not be converted. Details:
-- line 1 col 11: invalid TypeDecl
Code:
protected void Page_Load(object sender, EventArgs e)
{
string scriptString = "<script language="JavaScript"> " +
"window.opener.document.forms(0).submit(); </script>";
// ASP.NET 2.0
if (!Page.ClientScript.IsClientScriptBlockRegistered(scriptString))
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
"script", scriptString);
}
//// ASP.NET 1.X
//if (!Page.IsClientScriptBlockRegistered(scriptString))
//{
// Page.RegisterClientScriptBlock("script", scriptString);
//}
if (!Page.IsPostBack) { }
}