Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0navigating between pages in dotnetnukenavigating between pages in dotnetnuke
Previous
 
Next
New Post
1/1/2009 12:19 PM
 

Hi there,

I have created a custom login module in DNN 4.9. What I want to do is after the user logged in successfully, they will be prompted to a page for them to select a list of choices between they continue. How do I navigate from the login page(after successfully login) to the page where it shows a list of choices?

 

I tried to use NAVIGATEURL () but it can't work. Any one can help me on this? Greatly appreciated!!! Thank you!

 
New Post
1/1/2009 3:55 PM
 

I cannot imagine why NavigateURL would not work. Can you be more specific why it would not work?



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
1/2/2009 12:14 AM
 

Hi Michael,

Sure, I followed the tutorial in http://www.adefwebserver.com/DotNetNukeHELP/NavigateURL/ 

I entered a key in my CheckItem module as "Inventory" and then at the DNN Login ascx page (Desktop Modules/authentication modules/DNN/Login), after the enter button is click, I wrote smth like this:

 Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "Inventory", "mid=" & Cstr(ModuleID)))

Thereafter, the CheckItem module cannot be accessed. and after the login button has been clicked, it is beenn directed to a blank page. Am I doing this the right way? Please advise. Thanks!

Details of the codes:

 

 

Private Sub cmdLogin_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cmdLogin.ClickIf (UseCaptcha And ctlCaptcha.IsValid) OrElse (Not UseCaptcha) Then

 

 

 

 

 

Dim loginStatus As UserLoginStatus = UserLoginStatus.LOGIN_FAILUREDim objUser As UserInfo = UserController.ValidateUser(PortalId, txtUsername.Text, txtPassword.Text, "DNN", txtVerification.Text, PortalSettings.PortalName, IPAddress, loginStatus)Dim authenticated As Boolean = Null.NullBooleanDim message As String = Null.NullStringIf loginStatus = UserLoginStatus.LOGIN_USERNOTAPPROVED Then

 

'Check if its the first time logging in to a verified site

 

If PortalSettings.UserRegistration = PortalRegistrationType.VerifiedRegistration Then

 

If Not rowVerification1.Visible Then

 

'Display Verification Rows so User can enter verification code

rowVerification1.Visible =

True

rowVerification2.Visible =

True

message =

"EnterCode"

 

Else

 

If txtVerification.Text <> "" Then

message =

"InvalidCode"

 

Else

message =

"EnterCode"

 

End If

 

End If

 

Else

message =

"UserNotAuthorized"

 

End If

 

Else

authenticated = (loginStatus <> UserLoginStatus.LOGIN_FAILURE)

 

End If

 

'Raise UserAuthenticated Event

 

eventArgs.Authenticated = authenticated

eventArgs.Message = message

OnUserAuthenticated(eventArgs)

 

Dim eventArgs As UserAuthenticatedEventArgs = New UserAuthenticatedEventArgs(objUser, txtUsername.Text, loginStatus, "DNN")Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "queryinventory", "mid=" & CStr(ModuleId)))

 
New Post
1/2/2009 8:23 AM
 

In one place yoiu have:

Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "Inventory", "mid=" & Cstr(ModuleID)))

in another place you have:

Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "queryinventory", "mid=" & CStr(ModuleId)))

Also it seems you are putting this code in the DNN Core login module. That is not a good idea and it can cause unexpected results. See these tutorials for methods to change the login:



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
1/4/2009 3:09 AM
 

Hi Michael,

Thanks for pointing out the mistakes and referring me to the tutorials, but still I need to know how to use the navigateurl() as I would need to refer my user to another page after they have login.

Scenrios:

After user login and is successful, they will be referred to another page asking them to choose a list database.. i need to use the navigate url to navigate to the page asking them to choose the database.

thanks,

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0navigating between pages in dotnetnukenavigating between pages in dotnetnuke


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out