Overrideing Searchresults
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
Overrideing Searchresults

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Barre
Guest





Posted: Wed Oct 26, 2005 12:51 pm    Post subject: Overrideing Searchresults Reply with quote

Hi,

I'm trying to override the SearchResults webpart, but with no luck.

I just started a new VS webpart project and the webpart class is
inheriting from Microsoft.Sharepoint.WebpartPages.Webpart.

To implement an Inherited version of Searchresults, I'm trying to let
my webpart inherit from that class. Like so :

Public class Webpart1 :
Microsoft.Sharepoint.Portal.Webcontrols.SearchResults
{
....
}

That is the only thing i changed from the beginning. Now the webpart
is'nt working no more on the portal site. I don't know why. Is there
anything i'm supposed to do before overriding this SearchResults class.

All help would be appreciated,

Barre
Back to top
Kevin Laahs
Guest





Posted: Thu Oct 27, 2005 12:51 pm    Post subject: Re: Overrideing Searchresults Reply with quote

That should be all you have to do and it has worked for me. I suggest you
take a look at the following community project on gotdotnet - it also
overrides the SearchResults WebPart so you can follow its code...

http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=ec88db5d-3ebd-4aa0-aaa5-01a10338d800

"Barre" <b_callaerts@hotmail.com> wrote in message
news:1130321070.394064.284980@g44g2000cwa.googlegroups.com...
Quote:
Hi,

I'm trying to override the SearchResults webpart, but with no luck.

I just started a new VS webpart project and the webpart class is
inheriting from Microsoft.Sharepoint.WebpartPages.Webpart.

To implement an Inherited version of Searchresults, I'm trying to let
my webpart inherit from that class. Like so :

Public class Webpart1 :
Microsoft.Sharepoint.Portal.Webcontrols.SearchResults
{
...
}

That is the only thing i changed from the beginning. Now the webpart
is'nt working no more on the portal site. I don't know why. Is there
anything i'm supposed to do before overriding this SearchResults class.

All help would be appreciated,

Barre
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development 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