ReturnUrl
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > ReturnUrl




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ReturnUrl  
Jim Reynolds


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-17-07 06:17 PM

Hi,

I am using the .NET 2.0 login control on a masterpage. The page is a CMS
posting. After clicking on the login control the return URL instead of being
the posting that the control was clicked from it is the location of aspx
template. Is there a quick work around for this?

Jim





[ Post a follow-up to this message ]



    Re: ReturnUrl  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-17-07 06:17 PM

Hi Jim,

I assume you are seeing the real URL of the posting - means not the nice one
but the template URL with lots of query string parameters.

You can resolve this using this module:
http://blogs.technet.com/stefan_gos.../22/458139.aspx
http://www.gotdotnet.com/Community/...B9-9B758CD69DE1

Cheers,
Stefan


"Jim Reynolds" <JimReynolds@discussions.microsoft.com> wrote in message
news:4234E005-05E3-4051-9F3D-F33EBFD695EA@microsoft.com...
> Hi,
>
> I am using the .NET 2.0 login control on a masterpage. The page is a CMS
> posting. After clicking on the login control the return URL instead of
> being
> the posting that the control was clicked from it is the location of aspx
> template. Is there a quick work around for this?
>
> Jim







[ Post a follow-up to this message ]



    Re: ReturnUrl  
Jim Reynolds


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-17-07 06:17 PM

Yeah that's it, don't suppose you have a Vb version do you ; )

"Stefan Goßner [MSFT]" wrote:

> Hi Jim,
>
> I assume you are seeing the real URL of the posting - means not the nice o
ne
> but the template URL with lots of query string parameters.
>
> You can resolve this using this module:
> http://blogs.technet.com/stefan_gos.../22/458139.aspx
> http://www.gotdotnet.com/Community/...B9-9B758CD69DE1
>
> Cheers,
> Stefan
>
>
> "Jim Reynolds" <JimReynolds@discussions.microsoft.com> wrote in message
> news:4234E005-05E3-4051-9F3D-F33EBFD695EA@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: ReturnUrl  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-17-07 06:17 PM

Hi Jim,

no need. Just compile this into a separate DLL and copy into the bin
directory of your VB project.

Cheers,
Stefan


"Jim Reynolds" <JimReynolds@discussions.microsoft.com> wrote in message
news:436EBEEF-962D-4895-9650-D3AD7261AFF5@microsoft.com...[vbcol=seagreen]
> Yeah that's it, don't suppose you have a Vb version do you ; )
>
> "Stefan Goßner [MSFT]" wrote:
> 







[ Post a follow-up to this message ]



    Re: ReturnUrl  
Jim Reynolds


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-18-07 12:18 PM

Hi Stefan,

I have implemented that using VB.net and it still does not redirect. I have
made the login page a cms posting and after authenticating it redirects to
the template. I looked at the source and the script the httpmodule includes
is put before i.e

<script language="javascript" type="text/javascript">
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}<!--
var __CMS_PostbackForm = theForm;
var __CMS_CurrentUrl = "/BACS/Resources/Login.htm";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// -->
</script>

<script language="javascript" type="text/javascript">
<!--
var __CMS_PostbackForm = document.forms['aspnetForm'];
var __CMS_CurrentUrl =
"/Bacs/Templates/Secure/Login.aspx?NRMODE=Published&......etc

Can you help please?

Jim
"Stefan Goßner [MSFT]" wrote:

> Hi Jim,
>
> I assume you are seeing the real URL of the posting - means not the nice o
ne
> but the template URL with lots of query string parameters.
>
> You can resolve this using this module:
> http://blogs.technet.com/stefan_gos.../22/458139.aspx
> http://www.gotdotnet.com/Community/...B9-9B758CD69DE1
>
> Cheers,
> Stefan
>
>
> "Jim Reynolds" <JimReynolds@discussions.microsoft.com> wrote in message
> news:4234E005-05E3-4051-9F3D-F33EBFD695EA@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: ReturnUrl  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-18-07 06:19 PM

Hi Jim,

actually only one version of the script should show up with this http module
as the script block is registered using the name __CMS_Page and only one can
be registered using the same name.
Not sure what's going on on your system.

Cheers,
Stefan

"Jim Reynolds" <JimReynolds@discussions.microsoft.com> wrote in message
news:1CF1E31A-6DA2-454C-93A0-C4928AACA8D1@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> I have implemented that using VB.net and it still does not redirect. I
> have
> made the login page a cms posting and after authenticating it redirects to
> the template. I looked at the source and the script the httpmodule
> includes
> is put before i.e
>
> <script language="javascript" type="text/javascript">
> var theForm = document.forms['aspnetForm'];
> if (!theForm) {
>   theForm = document.aspnetForm;
> }<!--
> var __CMS_PostbackForm = theForm;
> var __CMS_CurrentUrl = "/BACS/Resources/Login.htm";
> __CMS_PostbackForm.action = __CMS_CurrentUrl;
> // -->
> </script>
>
> <script language="javascript" type="text/javascript">
> <!--
>   var __CMS_PostbackForm = document.forms['aspnetForm'];
>   var __CMS_CurrentUrl =
> "/Bacs/Templates/Secure/Login.aspx?NRMODE=Published&......etc
>
> Can you help please?
>
> Jim
> "Stefan Goßner [MSFT]" wrote:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:43 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register