|
Home > Archive > Microsoft Content Management Server > April 2007 > ReturnUrl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Jim Reynolds 2007-04-17, 1: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
| |
| Stefan Goßner [MSFT] 2007-04-17, 1: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
| |
| Jim Reynolds 2007-04-17, 1: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 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...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-17, 1: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:
>
| |
| Jim Reynolds 2007-04-18, 7:18 am |
| 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 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...
>
>
>
| |
| Stefan Goßner [MSFT] 2007-04-18, 1: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:
>
|
|
|
|
|