Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How do i navigate to to login page and pass the return url with parametre
Previous Previous
 
Next Next
New Post 4/8/2008 9:44 PM
User is offline lost
4 posts
10th Ranked


How do i navigate to to login page and pass the return url with parametre  
I have made a site in which a user clicks on image which redirects to a new page with say(image id and image path as parameter) now in that page i check is user register or not if not register I redirect to login page with return url and parameter to return url( check.aspx and parameter image id and image path) but in the login page i didnt not see any return url. I got only this( http://localhost:2724/mysite/tabid/56/ctl/Login/portalid/0/Default.aspx with no return url) please help me string mystring = "~/check.aspx?catid="+catid + "&itemid=" + itemid; Response.Redirect(Globals.NavigateURL(PortalSettings.LoginTabId,true,PortalSettings,"Login","returnurl="+ mystring)); But i cannot view the parameter in login page url. How do I do this? This didn’t help either If Not Request.IsAuthenticated Then Response.Redirect(Globals.NavigateURL(PortalSettings.LoginTabId, True, PortalSettings, “Login”, “returnurl=” & Server.UrlEncode(Request.Url.ToString))) End If Which I got from http://blog.pnbconsulting.com.au/?m=200709
 
New Post 4/9/2008 2:08 PM
User is offline Brian Dukes
429 posts
www.engagesoftware.com
8th Ranked


Re: How do i navigate to to login page and pass the return url with parametre  

try this (from Admin/Skins/Login.ascx.vb):

   1:              Try
   2:                  Dim ReturnUrl As String = HttpContext.Current.Request.RawUrl
   3:                  If ReturnUrl.IndexOf("?returnurl=") <> -1 Then
   4:                      ReturnUrl = ReturnUrl.Substring(0, ReturnUrl.IndexOf("?returnurl="))
   5:                  End If
   6:                  ReturnUrl = HttpUtility.UrlEncode(ReturnUrl)
   7:   
   8:                  If PortalSettings.LoginTabId <> -1 And Request.QueryString("override") Is Nothing Then
   9:                      ' user defined tab
  10:                      Response.Redirect(NavigateURL(PortalSettings.LoginTabId, "", "returnurl=" & ReturnUrl), True)
  11:                  Else
  12:                      ' portal tab
  13:                      If PortalSettings.HomeTabId <> -1 Then
  14:                          Response.Redirect(NavigateURL(PortalSettings.HomeTabId, "Login", "returnurl=" & ReturnUrl), True)
  15:                      Else
  16:                          Response.Redirect(NavigateURL(PortalSettings.ActiveTab.TabID, "Login", "returnurl=" & ReturnUrl), True)
  17:                      End If
  18:                  End If
  19:              Catch exc As Exception    'Module failed to load
  20:                  ProcessModuleLoadException(Me, exc)
  21:              End Try

 

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How do i navigate to to login page and pass the return url with parametre
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP