|
Home > Archive > Microsoft Content Management Server > July 2005 > QueryString And abstract class
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 |
QueryString And abstract class
|
|
| Olivier 2005-07-07, 7:50 am |
| Hi,
the querystring is not good for the hyperlink "postingLink" : the url for
the link is
"http://localhost/NR/exeres/FA0C2DAA-8CB6-4B4E-844C-B032B606CD74.htm?NRMODE=Unpublished"
i have lost the "wbc_purpose=Basic&WBCMODE=PresentationUnpublished" !!!
i have this problem when i am using an abstract class
here is my code :
public abstract class BlocDroite : PlaceHolder
{
private PlaceHolder ph=new PlaceHolder();
protected void AddElement(Posting posting)
{
HtmlAnchor postingLink=new HtmlAnchor();
postingLink.HRef=posting.Url;
postingLink.InnerHtml=posting.DisplayName;
ph.controls.add(ph);
}
protected override void CreateChildControls()
{
base.CreateChildControls();
this.controls.add(ph);
}
}
and the derived class :
public class BlocDroiteZoomSur : BlocDroite
{
public BlocDroiteZoomSur()
{
PostingCollection PostingsZoomSurCollection =
CmsHttpContext.Current.Searches.GetPostingsByCustomProperty("DansBlocZoomSur","Oui");
PostingsZoomSurCollection.SortByLastModifiedDate(false);
foreach (Posting PostingZoomSur in PostingsZoomSurCollection)
{
base.AddElement(PostingZoomSur);
}
}
}
thanks for helping...
| |
| Stefan [MSFT] 2005-07-07, 8:48 pm |
| Hi Oliver,
how does the URL of the called posting look like?
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Olivier" <Olivier@discussions.microsoft.com> wrote in message
news:D0E4E4AB-AE65-4EE0-AC50-21529C3268BC@microsoft.com...
> Hi,
>
> the querystring is not good for the hyperlink "postingLink" : the url for
> the link is
> "http://localhost/NR/exeres/FA0C2DAA-8CB6-4B4E-844C-B032B606CD74.htm?NRMODE=Unpublished"
>
> i have lost the "wbc_purpose=Basic&WBCMODE=PresentationUnpublished" !!!
>
>
> i have this problem when i am using an abstract class
>
> here is my code :
> public abstract class BlocDroite : PlaceHolder
> {
> private PlaceHolder ph=new PlaceHolder();
>
> protected void AddElement(Posting posting)
> {
> HtmlAnchor postingLink=new HtmlAnchor();
> postingLink.HRef=posting.Url;
> postingLink.InnerHtml=posting.DisplayName;
> ph.controls.add(ph);
> }
>
> protected override void CreateChildControls()
> {
> base.CreateChildControls();
> this.controls.add(ph);
> }
> }
>
> and the derived class :
> public class BlocDroiteZoomSur : BlocDroite
> {
> public BlocDroiteZoomSur()
> {
> PostingCollection PostingsZoomSurCollection =
> CmsHttpContext.Current.Searches.GetPostingsByCustomProperty("DansBlocZoomSur","Oui");
> PostingsZoomSurCollection.SortByLastModifiedDate(false);
> foreach (Posting PostingZoomSur in PostingsZoomSurCollection)
> {
> base.AddElement(PostingZoomSur);
> }
> }
> }
>
>
> thanks for helping...
>
| |
| Olivier 2005-07-07, 8:48 pm |
| looks fine :
wbc_purpose=Basic&NRMODE=Unpublished&WBCMODE=PresentationUnpublished
i call the BlocDroiteZoomSur class from an usercontrol (wich it called by an
template aspx)
"Stefan [MSFT]" wrote:
> Hi Oliver,
>
> how does the URL of the called posting look like?
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "Olivier" <Olivier@discussions.microsoft.com> wrote in message
> news:D0E4E4AB-AE65-4EE0-AC50-21529C3268BC@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-07-08, 7:48 am |
| Hi Oliver,
then please open a support case for this.
Cheers,
Stefan
"Olivier" <Olivier@discussions.microsoft.com> schrieb im Newsbeitrag
news:7F574871-2437-4957-86C5-D4DC20944186@microsoft.com...[vbcol=seagreen]
> looks fine :
> wbc_purpose=Basic&NRMODE=Unpublished&WBCMODE=PresentationUnpublished
>
> i call the BlocDroiteZoomSur class from an usercontrol (wich it called by
> an
> template aspx)
>
>
>
>
> "Stefan [MSFT]" wrote:
>
|
|
|
|
|