Microsoft Content Management Server - PropagateParameter

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > April 2004 > PropagateParameter





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]

Author PropagateParameter
Jan Lathouwers

2004-04-26, 8:35 am

Hi

The PropagateParameter method doesn't seem to work. What can I try?
Stefan [MSFT]

2004-04-26, 6:43 pm

Hi Jan,

it works. If you set the parameter using this method the next requests to
the Url property of a posting will show this parameter.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Jan Lathouwers" <lathouwers.jan@pandora.be> wrote in message
news:f20274d3.0404260434.47717795@posting.google.com...
> Hi
>
> The PropagateParameter method doesn't seem to work. What can I try?



Jan Lathouwers

2004-04-27, 3:35 am

Hi Stefan

I'm probably doing something wrong but the following code doesn't seem
to work:

private void EnglishButton_Click(object sender, System.EventArgs e)
{
CmsHttpContext.Current.PropagateParameter("lang","eng");
Response.Redirect(CmsHttpContext.Current.Posting.ToString());
}

What do I try next?

I'm trying to put a language chooser on every page through a custom
control and depending on the "lang" parameter I hide or show some
controls.


"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message news:<ewtO8g9KEHA.1144@TK2MSFTNGP12.phx.gbl>...[vbcol=seagreen]
> Hi Jan,
>
> it works. If you set the parameter using this method the next requests to
> the Url property of a posting will show this parameter.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Jan Lathouwers" <lathouwers.jan@pandora.be> wrote in message
> news:f20274d3.0404260434.47717795@posting.google.com...
Stefan [MSFT]

2004-04-27, 3:35 am

Hi Jan,

first of your redirect is strange as you don't do a redirect to the Url but
to the posting object.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Jan Lathouwers" <lathouwers.jan@pandora.be> wrote in message
news:f20274d3.0404262256.4d33f339@posting.google.com...
> Hi Stefan
>
> I'm probably doing something wrong but the following code doesn't seem
> to work:
>
> private void EnglishButton_Click(object sender, System.EventArgs e)
> {
> CmsHttpContext.Current.PropagateParameter("lang","eng");
> Response.Redirect(CmsHttpContext.Current.Posting.ToString());
> }
>
> What do I try next?
>
> I'm trying to put a language chooser on every page through a custom
> control and depending on the "lang" parameter I hide or show some
> controls.
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message

news:<ewtO8g9KEHA.1144@TK2MSFTNGP12.phx.gbl>...[vbcol=seagreen]
to[vbcol=seagreen]
rights.[vbcol=seagreen]


Jan Lathouwers

2004-04-27, 5:34 am

It works when I show the current posting's url in a label. But in my
dynamic navigation webcontrol, the parameter isn't added to the urls.

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message news:<ewtO8g9KEHA.1144@TK2MSFTNGP12.phx.gbl>...[vbcol=seagreen]
> Hi Jan,
>
> it works. If you set the parameter using this method the next requests to
> the Url property of a posting will show this parameter.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Jan Lathouwers" <lathouwers.jan@pandora.be> wrote in message
> news:f20274d3.0404260434.47717795@posting.google.com...
Stefan [MSFT]

2004-04-27, 2:36 pm

Hi Jan,

then obviously your code to retrieve the content to add it to the label and
the code that does not work is different.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Jan Lathouwers" <lathouwers.jan@pandora.be> wrote in message
news:f20274d3.0404270046.1b254552@posting.google.com...
> It works when I show the current posting's url in a label. But in my
> dynamic navigation webcontrol, the parameter isn't added to the urls.
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message

news:<ewtO8g9KEHA.1144@TK2MSFTNGP12.phx.gbl>...[vbcol=seagreen]
to[vbcol=seagreen]
rights.[vbcol=seagreen]


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com