Search KB Filter article types
Authentication CodeSample - Find target form within LogonForm
Categories: Authentication, Views Navigation
Tags: Developers, Windows & Dialogs, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
Revision: 1
Posted: 20/Sep/2009
Updated: 23/July/2010
Status: Publish
Types: Code

This article will have a few sections added to it soon, based on the following article type skeleton: CodeSample
Overview

This code is intended to be used within the Logon form, for the Logon form to know which form is being requested (See more in issue tracker)

VB.NET Code
 
    Private Function GetTargetFormType() As Type
        Dim objApplicationType As Type = Nothing
        Dim objRequestParams As IRequestParams = DirectCast(Me.Context.Request, IRequestParams)
 
        If objRequestParams IsNot Nothing Then
            Dim strApplicationType As String = Me.Context.Config.GetApplication(objRequestParams.Page)
 
            If Not String.IsNullOrEmpty(strApplicationType) Then
                objApplicationType = Type.GetType(strApplicationType, True)
            End If
        End If
 
        Return objApplicationType
    End Function

C# Code
private Type GetTargetFormType()
   {
      Type objApplicationType = null;
      IRequestParams objRequestParams = (IRequestParams)this.Context.Request;
 
      if (objRequestParams != null)
      {
          string strApplicationType = this.Context.Config.GetApplication(objRequestParams.Page);
 
          if (!string.IsNullOrEmpty(strApplicationType))
          {
              objApplicationType = Type.GetType(strApplicationType, true);
          }
      }
 
      return objApplicationType;
  }


About the author

Related Articles

Authentication  
Title Update Author
Tags: Developers, Navigation, 1. Beginner, 2. Intermediate, 3. Advanced, Integration, Navigation, ASP.NET, v6.3, v6.4 and Later
12/Jan/2007    2007/01/12
Tags: Developers, Navigation, 2. Intermediate, 3. Advanced, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
05/Jan/2009    2009/01/05
This video demonstrates how to create a logon form using the form authentication support in Visual WebGui
Tags: Architects, Developers, Windows & Dialogs, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
01/Jan/2009    2009/01/01
This video demonstrates How to create a register form using Visual WebGui
Tags: Architects, Developers, Windows & Dialogs, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
01/Jan/2009    2009/01/01
This video demonstrates How to create a register form using Visual WebGui.
Tags: Architects, Developers, Windows & Dialogs, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
02/Jan/2008    2008/01/02
This is a class to authenticate a user against Microsoft Active directory using the LDAP protocol.
Tags: Architects, Developers, Visual WebGui Pipeline, VB.NET, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
06/Jan/2010    2010/01/06
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS