PropagateParameter
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 > PropagateParameter




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

    PropagateParameter  
Jan Lathouwers


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


 
04-26-04 01:35 PM

Hi

The PropagateParameter method doesn't seem to work.  What can I try?





[ Post a follow-up to this message ]



    Re: PropagateParameter  
Stefan [MSFT]


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


 
04-26-04 11: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?







[ Post a follow-up to this message ]



    Re: PropagateParameter  
Jan Lathouwers


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


 
04-27-04 08: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@T
K2MSFTNGP12.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... 





[ Post a follow-up to this message ]



    Re: PropagateParameter  
Stefan [MSFT]


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


 
04-27-04 08: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] 







[ Post a follow-up to this message ]



    Re: PropagateParameter  
Jan Lathouwers


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


 
04-27-04 10: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@T
K2MSFTNGP12.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... 





[ Post a follow-up to this message ]



    Re: PropagateParameter  
Stefan [MSFT]


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


 
04-27-04 07: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] 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:16 AM.      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