Login - I/O Parameters and Code Sample

This appendix provides reference information for all HTML variables for developing a customized Login into Tracking for your company web site. All variables are uploaded using POST method


  • I/O Variables:
    These variables control how and which Module will respond to your customers query

  • Web Form code
    An aspx web form sample code for implementing a customized solution


I/O Variables


Name
Type
Direction
Description
_strUriReturn
String
In
Postback URL web address
_strLoginName
String
In/Out
Login Name Account
_strPassword
String
In/Out
Login Password
Error_Msg
String
Out
Message Error if exception occurred or it is an invalid login

ASPX Sample Form Code


LoginTest.aspx Code

    <%@ Page Language="VB" AutoEventWireup="false"  
    CodeFile="LoginTest.aspx.vb" Inherits="KSSS_LoginTest" %>

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

        <html xmlns="http://www.w3.org/1999/xhtml">

        <head runat="server">
            <title></title>  
        </head>

        <body>

            <form id="form1" method="post" 
                action="http://YOUR_COMPANY_SERVER_NAME/Default.aspx">

                <div>
                    <table style="width: 465px" cellpadding="4">
                        <tr>
                            <td>
                                Login Name
                            </td>
                            <td style="width: 100%">
                                <input id="_strLoginName" name="_strLoginName" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Password
                            </td>
                            <td style="width: 100%">
                                <input id="_strPassword" name="_strPassword" type="password" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan=2>
                                <input id="Login" type="submit" value="Login"  />
                            </td>
                        </tr>
                    </table>
        
                    <input id="_strUriReturn" name="_strUriReturn" type="hidden" 
                        value="<%=HttpContext.Current.Request.Url.AbsoluteUri %>" />
                </div>

            </form>

            <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>

        </body>

    </html>

LoginTest.aspx.vb Code

    Partial Class KSSS_LoginTest
    Inherits System.Web.UI.Page

        Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load

            For Each vInter In Request.Form.Keys
                lblResult.Text &= vInter & ": " & Request.Form.Item(vInter) & "<br />"
            Next

        End Sub

    End Class



Give us a call we are here to help. Free and Non-Compromise Quote
Disclaimer: This Website uses 'cookies' to store user preferences information. Using this site means you are 'OK with this.

 Powered by K SSS, Inc.
 Powered by K SSS, Inc.
Disclaimer: This Website uses 'cookies' to store user preferences information. Using this site means you are 'OK with this.