| Author |
Message |
Tony Cheng
Guest
|
Posted:
Tue Jan 18, 2005 5:46 pm Post subject:
CmsHttpContext.Search Question |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|