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 OverviewThis 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
|
|
|
Tags:
Developers, Navigation, 1. Beginner, 2. Intermediate, 3. Advanced, Integration, Navigation, ASP.NET, v6.3, v6.4 and Later
|
|
|
Tags:
Developers, Navigation, 2. Intermediate, 3. Advanced, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
|