CmsHttpContext.Search Question
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
CmsHttpContext.Search Question

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Tony Cheng
Guest





Posted: Tue Jan 18, 2005 5:46 pm    Post subject: CmsHttpContext.Search Question Reply with quote

I have created a placeholder for user to select posting's link in MCMS
Server. For postings which are not published, it would return a link like
this :

/NR/exeres/20EDD999-0404-4EE3-B94F-AAD9C5AA0683.htm

Because I need to check the posting status by the returned link,
CmsHttpContext.Search object would be used. My question is how can I get the
posting back by using above link ? Should I use GetByPath or GetByUrl ?
Thank you very much

Tony
Back to top
Stefan [MSFT]
Guest





Posted: Tue Jan 18, 2005 6:12 pm    Post subject: Re: CmsHttpContext.Search Question Reply with quote

Hi Tony,

extract the GUID from the URL and search by GUID.
Something like this:

string[] splt = Url.Split('/');
string GUID = splt[3];
Posting p = CmsHttpContext.Current.Searches.GetByGuid("{"+GUID+"}") as
Posting;

Cheers,
Stefan.

"Tony Cheng" <sdasd@fdfsds.com> wrote in message
news:uU#7mNV$EHA.4092@TK2MSFTNGP09.phx.gbl...
Quote:
I have created a placeholder for user to select posting's link in MCMS
Server. For postings which are not published, it would return a link like
this :

/NR/exeres/20EDD999-0404-4EE3-B94F-AAD9C5AA0683.htm

Because I need to check the posting status by the returned link,
CmsHttpContext.Search object would be used. My question is how can I get
the
posting back by using above link ? Should I use GetByPath or GetByUrl ?
Thank you very much

Tony

Back to top
Tony Cheng
Guest





Posted: Tue Jan 18, 2005 8:47 pm    Post subject: Re: CmsHttpContext.Search Question Reply with quote

thx

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:OE07EcV$EHA.2984@TK2MSFTNGP09.phx.gbl...
Quote:
Hi Tony,

extract the GUID from the URL and search by GUID.
Something like this:

string[] splt = Url.Split('/');
string GUID = splt[3];
Posting p = CmsHttpContext.Current.Searches.GetByGuid("{"+GUID+"}") as
Posting;

Cheers,
Stefan.

"Tony Cheng" <sdasd@fdfsds.com> wrote in message
news:uU#7mNV$EHA.4092@TK2MSFTNGP09.phx.gbl...
I have created a placeholder for user to select posting's link in MCMS
Server. For postings which are not published, it would return a link like
this :

/NR/exeres/20EDD999-0404-4EE3-B94F-AAD9C5AA0683.htm

Because I need to check the posting status by the returned link,
CmsHttpContext.Search object would be used. My question is how can I get
the
posting back by using above link ? Should I use GetByPath or GetByUrl ?
Thank you very much

Tony



Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB