.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Employee Search wildcard- Help with this code

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :SharePoint

As the default sharepoint search doesn't support wildcard, I used content editor webpart, and insert a code in the source

the code is available at http://www.ramonscott.com/wordpress/ 

It added a text field for First Name, last name and a drop down menu for Dept.

I added an extra text field for telephone ext. The problem that i'm facing is it is searching for exactly what i'm entering in the text field (not the wildcard)

e.g if my ext = 298 --> I should enter 298 to get my name in the result, otherwise the result will return nothing.

How can I change the code to return any record that contain 298 (whether it begins with 298, end with 298, or in the middle)

below is the code from Ramon Scott

<script language="javascript">
//function to handle enter on keyboard
function txtWildPeopleFinder_KeyDown(e)
if (e.keyCode == 13 || e.keyCode==10)
return false;
return true;
//escape apostrophes in search strings
function escapestr(str)
return str.replace("'","%22");

View Complete Post

More Related Resource Links

Code Name WinFS: Revolutionary File Storage System Lets Users Search and Manage Files Based on Conte


One of the monumental problems organizations face today is aggregating information that's stored in disparate formats. Knowledge workers have long wanted to be able to search for content independent of format. The next version of the Windows operating system, code-named "Longhorn," boasts a new storage subsystem that makes that task easier. That subsystem, code-named "WinFS," allows the user to perform searches based on the metadata of the stored item, regardless of what type of file it is or which application created it. This article covers the basic architecture of WinFS and explains how to use the WinFS managed API.

Richard Grimes

MSDN Magazine January 2004

Error in / Application after adding employee search in webpart


Hello everyone,

I am working on sharepoint 2007 and I was editing the webpart of the software and after adding the predefined employee search table, the server has crashed while trying to access the server remotely with the following error message:

Error in / Application

However, while trying to login locally I have no problem and can easily login.

What will be the course of action in fixing this error.

Also the site is complaining of an invalid certificate even after adding an exception.

Any help would be greatly appreciated.

Thank You,

Chris Stanko

sharepoint wildcard search using SearchDocuments()

Hi, I have to search all the document with name doc in them.So i search it with search parameter as "doc" but it doesnt fetch any result.though i want result as all the document whose name starts with doc. Now I am able to search with fulltext. I want wildcard search using SearchDocuments method. I am using CWeb.SearchDocuments(SearchString). Any Help appricated!!! Thanks Srikanth Reddy

Wildcard Search in SP 2010

Dear Community, with Sharepoint 2010, Microsoft finally added a Wildcard Search. But only a prefixed one, at least as far as I found out. Is there a suffix wildcard search as well and I just didn't find it? If there isn't, can FAST Search do the job? Or do I have to implement a own (extended) search to do this (if even possible)? Thanks in advance, Greetings, SoundofSilence

Adding logic to the Search Core Results web part - Manipulation in code or XSL?

Hi,I need to manipulate the search core results web part, so that:- It will display a check box for each result- It Will have an additional button. When clicking on this button the checked results should be copied to a grid view.Do you have any idea how it can be done?I am not sure what is the correct way to do it – in the client side via the XSL Editor or in the server side with the C# code.Thank you so much for your help,Regards,SP beginner.

office search & Error 6482 during encryption or decryption. System error code 0


Occured when changed the password, all steps were successfull.

Same problem :http://social.technet.microsoft.com/Forums/en-US/sharepointsearch/thread/6194945b-1ec5-48b4-b827-d4ab998e046c

 Error Information:

04/05/2010 20:08:09.56 OWSTIMER.EXE (0x125C) 0x101C Office Server Office Server Shared Services 7u16 Critical Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchAdminSharedWebServiceInstance (3a49bdd9-0f3e-4044-8def-78a59dd567c1). Reason: Error during encryption or decryption. System error code 0. Techinal Support Details: System.ArgumentException: Error during encryption or decryption. System error code 0. at Microsoft.SharePoint.Administration.SPCredentialManager.DecryptWithMasterKey(Byte[] rgbEncryptedPassphrase) at Microsoft.SharePoint.Administration.SPEncryptedString.GetSecureStringValue(Byte[] rgbEncryptedAlternateKey) at Microsoft.SharePoint.Administration.SPEncryptedString.GetSecureStringValue() at Microsoft.SharePoint.Administration.SPEncryptedString.get_SecureStringValue() at Microsoft.SharePoint.Adm... 04/05/2010 20:08:09.56* OWSTIMER.EXE (0x125C) 0x101C Office Server Office Server Shared Services 7u16 Critical ...inistration.SPProcessIdentity.get_

how to search and monitor event code 3005


I like to know how to search/detect or monitor for event code:3005 in my IIS box

 can i write script to pull that info and report to me?

Any instructions on this will be helpfull(I searched already and can't find anything)


WildCard Search using document library column


Hi there ,is there any step by step instructions on how to make search using custom columns with wildcard i mean ability to make user fill fields for column like

Registration code [and the user type something]

ItemName[and type another word]

then finally press search

what i have did for now is

created custom columns for document library

created a scope for this specific document library

created managed property mapped to crawled property of these columns

edited properties xml and added propertyDef and PropertyRef

installed DotNetMafia wildcard webpart and activated feature and added this webpart to page.

then no searchbox appeart ,what am i missing?


Search Form Code Behind


I want to create an Select SQL string by some search fields. Since I can't check the blank ones, otherwize it would look for blank, I have to do this on steps, adding them if they where not in blank, so, for that I am using something like this:

String SearchString = "SELECT * FROM Sala ";
String SelectWhere = "WHERE "; //This where is because I may receive all empty, so, the WHERE would make problems in the string.

If (TextClassroom.Text != "") {
  SelectWhere += "(Classroom = " + Classroom.Text + ")";

But here is the issue. I may search for more than one at once, and that, would make me have to put an "AND" clause between them. How do I check that in the less number of lines as possible? I made a count variable, so I can count when it has been entered. But, getting to the third time it gets in, I have to check if the number is 1, or the number is 2, to see if I need to put an AND, right? And that would start making hard when we have, like, 10 fields. Is there an easier way to check when to put the AND without that many checks inside checks of empty texts?

keyword search - anyone got code or know where I can find it, tips ?


I need to search some records for one or more keywords ( user entered) and then display them in order of matching i.e. at the top all 3 keywords, at the bottom, just one keyword found.

Before I do this.... has anyone done it before ?

I was going to go through each sql record and search for the words, presume that best way ?

specific code search


I have 25 websites in which each website have 500 pages. I want to know in which page the specific code was implemented let say if i want to know in which page <span>test<span> is implemented under each website. Is there any way to know through any tool or application.

I shall be very thankful if someone could help me.

Ontolica wildcard search solution exists


From where can i download the free Ontolica wildcard search solution for MOSS 2007?

search engine code


 how to create search  option for a site.

plz provide  code for search option.

i want to place option on site  that custmor can seach  thing on site  by writting word or phrases like google.

wildcard search


i want to do a wild card search in one of the db table data

currently i have 


="SELECT * FROM [Issues_vw] WHERE ([Title] LIKE '%' + @Title + '%')"


data shows when i input one word but when i put in multiple words nothing shows.

ex. if i put '64bit' data shows but when i put in '64bit windows' nothing shows up

how can this be done so i can search anything even if i put in '64bit windows' and lets say only '64bit' is in the @Title field it shows up.

anyways this can be done?


Javascript code to search item in dropdown.



I want to know how to select dropdown item using javascript when user type in dropdown? 

The dropdown may be binded with a datasource or have same value list.

I have asp.net2.0 framework.

Please don't advise for using ajax.

My question is to know the way of doing this task only using JAVASCRIPT.


Please reply as soon as possible.

code to add to make site visable in search engines



Still new. What can I add to my site to get picked up by serch engines without paying for services?

Right now if I do a search My site does not appear.




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend