Classic to Modern site redirect page

%3CLINGO-SUB%20id%3D%22lingo-sub-1908919%22%20slang%3D%22en-US%22%3EClassic%20to%20Modern%20site%20redirect%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1908919%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3ENew%20to%20the%20forum%20so%20I%20hope%20I%20got%20this%20in%20the%20correct%20location.%26nbsp%3B%20Were%20starting%20a%20migration%20to%20SPO%20from%20Classic%20SP2016%20on%20premise.%26nbsp%3B%20Most%20everything%20is%20a%20redesign%20due%20to%20the%20modern%20page%20layouts%20and%20seem%20straight-forward%20except%20for%20a%20redirect%20page%20we%20currently%20use%20in%20production.%26nbsp%3B%20It's%20an%20ASPX%20page%20we%20created%20in%20SP%20Designer%20that%20POSTS%20user%20logon%20data%20to%20a%20research%20site%20that%20many%20of%20our%20users%20utilize%20daily.%26nbsp%3B%20I%20tried%20to%20just%20upload%20the%20current%20page%20to%20SPO%20but%20get%20just%20the%20file%20downloaded%20when%20clicking%20on%20the%20page.%26nbsp%3B%20The%20page%20uses%20a%20Body%20onload%20JavaScript%20function%20to%20send%20the%20hidden%20data%20to%20the%20login%20process%20on%20the%20external%20site%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3E%0A%26lt%3B%25%40%20Page%20Language%3D%22C%23%22%20%25%26gt%3B%0A%26lt%3B%25%40%20Register%20Tagprefix%3D%22SharePoint%22%20Namespace%3D%22Microsoft.SharePoint.WebControls%22%20Assembly%3D%22Microsoft.SharePoint%2C%20Version%3D14.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D71e9bce111e9429c%22%20%25%26gt%3B%0A%0A%26lt%3B%25%40%20Register%20Tagprefix%3D%22SharePoint%22%20Namespace%3D%22Microsoft.SharePoint.WebControls%22%20Assembly%3D%22Microsoft.SharePoint%2C%20Version%3D14.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D71e9bce111e9429c%22%20%25%26gt%3B%0A%0A%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CSCRIPT%20language%3D%22JavaScript%22%3E%0A%20function%20submitFrom()%20%7B%0A%20login.submit()%3B%0A%20%7D%0A%3C%2FSCRIPT%3E%0A%0ALoading%20Page%2C%20Please%20wait...%0A%3CFORM%20id%3D%22login%22%20action%3D%22http%3A%2F%2Fwww.customurl.com%2Flogin.phtml%22%20target%3D%22_top%22%20method%3D%22POST%22%3E%0A%20%3CINPUT%20type%3D%22hidden%22%20name%3D%22username%22%20value%3D%22xxxxxxxx%22%20%2F%3E%0A%20%3CINPUT%20type%3D%22hidden%22%20name%3D%22password%22%20value%3D%22xxxxxxxx%22%20%2F%3E%0A%3C%2FFORM%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20page%20has%20been%20working%20on%20SP2010%2C%20SP2013%20%26amp%3B%20SP2016%20classic%20sites.%26nbsp%3B%20I%20need%20help%20in%20changing%20this%20to%20work%20on%20SPO%20and%20I'm%20not%20a%20Full%20time%20developer.%26nbsp%3B%20Any%20help%20will%20be%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%26nbsp%3B%20since%20I%20can't%20get%20SP%20Designer%20to%20connect%20to%20SPO%2C%20what's%20the%20recommended%20way%20to%20edit%20this%20file%20every%2060%20days%20when%20the%20hidden%20fields%20have%20to%20be%20edited%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20all%20in%20advance%20for%20reading%20this%20and%20any%20suggestions.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1908919%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hello all,

New to the forum so I hope I got this in the correct location.  Were starting a migration to SPO from Classic SP2016 on premise.  Most everything is a redesign due to the modern page layouts and seem straight-forward except for a redirect page we currently use in production.  It's an ASPX page we created in SP Designer that POSTS user logon data to a research site that many of our users utilize daily.  I tried to just upload the current page to SPO but get just the file downloaded when clicking on the page.  The page uses a Body onload JavaScript function to send the hidden data to the login process on the external site:

 

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ Page Language="C#" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="JavaScript">
	function submitFrom() {
	login.submit();
	}
</script></head>
<body onload="submitFrom();">
Loading Page, Please wait...
<form id="login" ACTION="http://www.customurl.com/login.phtml" TARGET=_top METHOD=POST>
	<input type="hidden" name="username" value="xxxxxxxx" />
	<input type="hidden" name="password" value="xxxxxxxx" />
</form></body></html>

 

 

 

This page has been working on SP2010, SP2013 & SP2016 classic sites.  I need help in changing this to work on SPO and I'm not a Full time developer.  Any help will be appreciated.

 

Also,  since I can't get SP Designer to connect to SPO, what's the recommended way to edit this file every 60 days when the hidden fields have to be edited?

 

Thank you all in advance for reading this and any suggestions. 

 

0 Replies