.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

Modify the SmallSearchInputBox

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

In my master page, I used

SmallSearchInputBox, currently the scope for search is "All Site Content", "This Site: the current site", and "People", how can I add my a few more subsite to this list?

Please advice. Thanks in advance.

View Complete Post

More Related Resource Links

How to modify the login control



I'd like to record more information than the default control allows as well as perform actions with the input when the form is submitted but I'm having trouble figuring out how.

So firstly, if I want to record the middlename for example, how would I do that, and by default, where would it go if anywhere?
When the form is submitted, I'd like to take specific input, such as just the middlename for example, and write some linq to sql code to specify when and how it's stored.
In what event would I put this code?


Modify Menu adapter to show selected


Hey, I need some help modifying the menu adapter code to give child <ul> elements a class value indicating that the parent is selected. It should render like this:


< ul class="AspNet-Menu">
	< li class="AspNet-Menu-WithChildren  AspNet-Menu-ChildSelected">
		< a href="/rockit/admin/Default.aspx" class="AspNet-Menu-Link  AspNet-Menu-ChildSelected">
		< span>Mypage< /span>< /a>
			< ul class="AspNet-Sub AspNet-Sub-Selected">
				< li class="AspNet-Menu-Leaf  AspNet-Menu-Selected">
					< a href="/rockit/admin/Default2.aspx" class="AspNet-Menu-Link  AspNet-Menu-Selected">
					< span>Test< /span>< /a>
				< /li>
				< li class="AspNet-Menu-Leaf">
					< a href="/rockit/Default3.aspx" class="AspN

ASP.NET: Intercept, Monitor, and Modify Web Requests with HTTP Filters in ISAPI and ASP.NET


There can be many reasons to reroute incoming Web requests. For instance, sometimes it's necessary to redirect a browser to a page based on user criteria without passing long lists of parameters in the URL. In the past, the only way to intercept such page requests and send them elsewhere was with ISAPI. Now, in ASP.NET, the IHttpModule interface provides notification of server requests, and lets you easily reroute them based on criteria other than browser type or version. Here the author demonstrates the use of IHttpModule for interception and explains the use of ISAPI filters for anyone who isn't yet using ASP.NET.

Panos Kougiouris

MSDN Magazine August 2002

Modify Javascript via .Net?



I have an ASP.NET page which has some Javascript in it.

Is there a way in the Code Behind to modify the Javascript?

Say for example I have an Array in my Code Behind with 10 values (24, 17, 36, 47.....)

How would I make the Javascript become ....

<script type="text/javascript">


    function load() {
    if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));
    //map.setCenter(new GLatLng(37.4419, -122.1419), 1);
    map.addControl(new GLargeMapControl());
    map.setCenter(point, 1);
var point = new GLatLng(-33.9417, 24); var marker = new GMarker(point); map.addOverlay(marker); point = new GLatLng(-33.9427, 17); marker = new GMarker(point); map.addOverlay(marker); point = new GLatLng(-33.9437, 36); marker = new GMarker(point); map.addOverlay(marker);
    point = new GLatLng(-33.9437, 47);
    marker = new GMarker(point);
} } //]]> </script>


cannot currently modify this text in the editor.It is read only error


Hi, perhaps i have found a bug in Visual Studio 2008 Team Edition.Every thing was going well.

I started to build my project, but for certain reasons i went to Built Tab and while the project wes in build process i clicked Cancel Button.

Alas!! after that my class file has gone to non-editable mode.It is giving this error:

"cannot currently modify this text in the editor.It is read only ".I closed and again opened Project but no improvement.I went to Tool->Import Export Setting->reset all settings but no benefit.

How to resolve this problem ?

Is it possible to modify the defualt My Site url?

Currently, when users select the My Site link, they are directed to "http://mysite.domain.com/personal/domain_username/default.aspx"

I would like to direct them to this instead "http://mysite.domain.com/personal/domain_username/home/default.aspx"

Assuming this is possible to implement, but I don't know how. Thank you for your help.

Modify User in Collect Data from User Workflow


I've created a workflow with a Collect Data from User action that emails a Group when the task is created. Once the task is claimed by an individual, the Assigned To column in the task list is updated to display that person's name but once the task is completed the email variable for the action is not updated and the group is emailed instead of the person listed as Assigned To.

So the question is this: Is there a way to update the user varialbe in the workflow task once the task is completed, or would I need to build my own workflow and use the Send Email action?

Modify 'SearchTable' area in BDC XSLT


Quite simply - no matter what changes I make to the XSL in the 'SearchTable' area of the BDC web part, nothing is affected on the page. I can put anything I want outside of this section - but in this section all my tweaks are just ignored! For instance, I want to hide some of the search criteria boxes (as there is only one search column in my data) and also hide the 'is equal to' box as there is only one option. I want a small title saying 'Search...' and the search box and that's it, but instead I get the same stuff rendered no matter the XSL.

Is there any reason I can't modify this? My XSL changes are not being overwritten - they are just being ignored - if I edit the XSL after I've saved it still contains my changes...

I'm about to rip my hair out over this SharePoint thing - it's great when it works, but you can literally spend a lifetime trying to get it working...


Modify meeting workspace menu



Is it possible to change the order of the date menu on a meeting workspace? At the moment the menu is sorted Ascending and we need it sorted Descending.

Any help would be appreciated!


modify login control



is it posible to change the way to log in a wss3 site.

i created a wss 3 site collection. to enter the site a login control pop up then you need to log in using windows authentication before ypu can see the site.

now i want to change this pop up thing in to a nice page. so the user can see a welcome page and there he can fill in his username and password to log in.

i want to keep using windows authentication not FBA.

is this possible?


allow client to modify text on web page


I have been trying to find out how I can allow a user to modify/update a page/pages on a web site. I understand there has to be site security with authentication and authorisation but what is there as a user interface for them easily to update a page? 

Thanks for any pointers.

How do I modify the link of a Hyperlink column ?


OK , I'm a bit new to this game. I'm trying to build a web page that simply scans a directory in the server and creates a web page with links to the files in that directory - sounds simple and should be easy to do !

So I have a bit of code that reads the myDocuments folder in my web site and then populates a grid view hyperlink column with the filenames in the folder - wow it works !

The only thing I am struggling with now is getting the hyperlink correct within the GridView so that the user goes to the actual document.

So my code behind is;

Dim dirInfo As New System.IO.DirectoryInfo(Server.MapPath("~/MyDocuments"))  
       articleList.DataSource = dirInfo.GetFiles()  

which reads the file info in the directory myDocuments and binds the info to a datasource.

So now I'm using that datasource to display the filenames in a gridview so that the user can click on a name and open the file.

Modify Subject line of Notification e-mails sent by Database Mail

Hello All, I am using database mail for SQL Server Agent Job notification.  It is working just great. However the e-mails that I receive have a specific format of subject line as below. SQL Server Job System: 'TEST' completed on \\Server_Name I wanted to see if I can modify this to send e-mails with this subject line. SQL Server Job System: 'TEST' completed on <Server_Name> Is this possible?  If so can someone help me with the steps? Thanks.

Modify workflow function by user

Hi can user modify the work flow based on the requirements...i saw some 3rd party tools...but is it possible to do by default in sharepoint with out external tools   Thanks _________ arWINdh  

Unable to modify Maintenance Plans SQL 2008

Been having a problem for a while, in that we are unable to modify any maintenance plans in SQL Server Management Studio. The server is running SLQ Server 2008 Standard on Windows 2003 Standard SP2

SmallSearchInputBox inputbox size change

Good Morning I am attempting to do, what I thought, an easy task. All I want to do is increase the size of the input box in SmallSearchInputBox. I played with every class under the universe and finially noticed that in the rendered html there is an inline stype setting the width to 170px. How can I change this? thanks Jake
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