Welcome to Nology Solutions, a leader in IT Customer Service and Support.

Close Icon
   
Contact Info     24 Hours: +1 905-890-9788

        Toll Free: 1-888-NOLOGY-9

Webmail

<%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”NologyEmailLogin.aspx.cs” Inherits=”NologyEmailLogin.NologyEmailLogin” %>

<!DOCTYPE html>
<html>

<head runat=”server”>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge;chrome=1″ />
<title>Email Login</title>
<script>

function findServer() {
// check the fields are filled in
var curEmail = document.getElementById(‘<%= userEmail.ClientID %>’).value.toString();
if (curEmail.length == 0) {
alert(“Email must be entered”);
return;
}

// do postback to the server
__doPostBack(‘<%= UpdatePanel1.ClientID %>’, ”);
}

///////////////////////////////////////////////////////////////////
// gets called when the ajax is finished. check if we got an error and handle it
function Request_End(sender, args) {
if (args.get_error() != undefined && args.get_error() != null) {
// now make sure the system knows we handled the error.
args.set_errorHandled(true);
}
else {
// do we have the loginUrl to submit to
serverLoginUrl = document.getElementById(‘<%= loginUrl.ClientID %>’).value.toString();
if (serverLoginUrl.length > 0) {
// submit the form to the correct server
//alert(serverLoginUrl);

var form = document.createElement(“form”);
form.setAttribute(“method”, “post”);
form.setAttribute(“action”, serverLoginUrl);

var userField = document.createElement(“input”);
userField.setAttribute(“type”, “text”);
userField.setAttribute(“name”, “User”);
userField.setAttribute(“id”, “User”);
userField.setAttribute(“value”, document.getElementById(‘<%= userEmail.ClientID %>’).value.toString());
form.appendChild(userField);

var pwField = document.createElement(“input”);
pwField.setAttribute(“type”, “password”);
pwField.setAttribute(“name”, “Password”);
pwField.setAttribute(“id”, “Password”);
pwField.setAttribute(“value”, document.getElementById(‘<%= userPassword.ClientID %>’).value.toString());
form.appendChild(pwField);

var langField = document.createElement(“input”);
var langDDL = document.getElementById(‘<%= Lang.ClientID %>’);
langField.setAttribute(“type”, “hidden”);
langField.setAttribute(“name”, “Lang”);
langField.setAttribute(“id”, “Lang”);
langField.setAttribute(“value”, langDDL.options[langDDL.selectedIndex].text);
form.appendChild(langField);

var themeField = document.createElement(“input”);
var themeDDL = document.getElementById(‘<%= Theme.ClientID %>’);
themeField.setAttribute(“type”, “hidden”);
themeField.setAttribute(“name”, “Theme”);
themeField.setAttribute(“id”, “Theme”);
themeField.setAttribute(“value”, themeDDL.options[themeDDL.selectedIndex].text);
form.appendChild(themeField);

document.body.appendChild(form);
form.submit();
}
else {
alert(“Invalid Email Address. Server not found”);
}
}
} // end function Request_End
</script>
</head>

<body>
<form runat=”server”>
<asp:ScriptManager ID=”ScriptManager1″ runat=”server”>
</asp:ScriptManager>
<script type=”text/javascript”>
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(Request_End);
</script>
<asp:UpdatePanel ID=”UpdatePanel1″ runat=”server” ViewStateMode=”Enabled”>
<ContentTemplate>
<div>
<table align=”center” border=”1″>
<tr>
<td>

 

<table style=”margin: auto; text-align: center; “>
<tr>
<td style=”font-family: Arial, Helvetica, sans-serif; font-size: x-large; color: #FFB555″>
&nbsp;&nbsp;<B>Please Login&nbsp;&nbsp;
</td>
</tr>
<tr>
<td>
<asp:TextBox ID=”userEmail” runat=”server” placeholder=”email address” Columns=”40″ ></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID=”userPassword” runat=”server” TextMode=”Password” placeholder=”password” Columns=”40″ ></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Button ID=”signInButton” runat=”server” Text=”Sign In” BackColor=”#FF9933″ BorderStyle=”None” OnClientClick=”findServer(); return false;” />
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
<asp:DropDownList ID=”Lang” name=”Lang” runat=”server”>
<asp:ListItem Value=”en” Selected=”True”>English</asp:ListItem>
<asp:ListItem Value=”fc”>Canadien français</asp:ListItem>
<asp:ListItem Value=”zh”>中文</asp:ListItem>
<asp:ListItem Value=”da”>Dansk</asp:ListItem>
<asp:ListItem Value=”de”>Deutsch</asp:ListItem>
<asp:ListItem Value=”cs”>Česky</asp:ListItem>
<asp:ListItem Value=”uk”>English-UK</asp:ListItem>
<asp:ListItem Value=”es”>Español</asp:ListItem>
<asp:ListItem Value=”fr”>Français</asp:ListItem>
<asp:ListItem Value=”id”>Bahasa Indonesia</asp:ListItem>
<asp:ListItem Value=”it”>Italiano</asp:ListItem>
<asp:ListItem Value=”ja”>日本語</asp:ListItem>
<asp:ListItem Value=”ko”>한글</asp:ListItem>
<asp:ListItem Value=”hu”>Magyar</asp:ListItem>
<asp:ListItem Value=”nl”>Nederlands</asp:ListItem>
<asp:ListItem Value=”no”>Norsk (bokmål)</asp:ListItem>
<asp:ListItem Value=”pl”>Polski</asp:ListItem>
<asp:ListItem Value=”pt”>Português</asp:ListItem>
<asp:ListItem Value=”ru”>Русский</asp:ListItem>
<asp:ListItem Value=”fi”>Suomi</asp:ListItem>
<asp:ListItem Value=”sv”>Svenska</asp:ListItem>
<asp:ListItem Value=”tw”>Taiwan</asp:ListItem>
<asp:ListItem Value=”sr”>Srpski</asp:ListItem>
<asp:ListItem Value=”gr”>Ελληνικά</asp:ListItem>
<asp:ListItem Value=”tr”>Türkçe</asp:ListItem>
<asp:ListItem Value=”ro”>Romana</asp:ListItem>
<asp:ListItem Value=”ar”>العربية</asp:ListItem>
<asp:ListItem Value=”vi”>Tiếng Việt</asp:ListItem>
<asp:ListItem Value=”th”>ไทย</asp:ListItem>
<asp:ListItem Value=”ca”>Català</asp:ListItem>
</asp:DropDownList>

</td>
</tr>
<tr>
<td>
<asp:DropDownList ID=”Theme” name=”Theme” runat=”server”>
<asp:ListItem Value=”WorldClient” Selected=”True”>WorldClient</asp:ListItem>
<asp:ListItem Value=”Lite”>Lite</asp:ListItem>
<asp:ListItem Value=”LookOut”>LookOut</asp:ListItem>
<asp:ListItem Value=”Mobile”>Mobile</asp:ListItem>
</asp:DropDownList>

</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<asp:HiddenField ID=”loginUrl” runat=”server” />
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>

Comments are closed.