Hi, ive had the same problem as you. I was trying to add the floating div pane to a minimal master page. But it didn't work. Thats because you need to have the div that tells sharepoint where to place the ToolPane, without it sharepoint will just place it where it wants to.
Here is the div that will hold the ToolPane on your page:
<!-- This Div tells sharepoint where to place the ToolPane -->
<!-- /ToolPane div -->
But now that i got the ToolPane floating, none of the Ok/Cancel/Apply buttons work. Let me now if they work for you.
Ever wondered how to change the title displayed on a SharePoint page dynamically from a web part?
Stick the following in your web part:
#region Set Page Title
///<summary>/// Set the title of the page.
///</summary>///<paramname="pageTitle">The new title for the page.</param>publicvoid SetPageTitle(string pageTitle)
TitleBarWebPart titleBar = this.FindTitleBar(this.Page);
titleBar.HeaderTitle = pageTitle;
#region Find Title Bar
///<summary>/// Find the title bar control of the page.
///</summary>///<paramname="control">The control to start the search at.</param>///<returns>Returns the first TitleBarWebPart control found.</returns>private TitleBarWebPart FindTitleBar(Control control)
TitleBarWebPart result = null;
int counter = 0;
while ( (counter < control.Controls.Count) && (result == null) )
Control currentControl = control.Controls[counter];
if (currentControl.GetType() == typeof(Microsoft.SharePoint.WebPartPages.TitleBarWebPart))
return currentControl as TitleBarWebPart;
result = FindTitleBar(currentControl);
Today I have to work on full-text indexing to do a bit of searching, I found this usefull little Article[^] that shows you how to create the index with scripts.
Here is what I came up with:
-- create the full text index
sp_fulltext_catalog 'search', 'create'go-- create index for the question table
sp_fulltext_table 'Question', 'create', 'search', 'PK_Question'go
sp_fulltext_column 'Question', 'Title', 'add'go
sp_fulltext_column 'Question', 'Question', 'add'go
sp_fulltext_table 'Question', 'activate'go-- perform a full index
sp_fulltext_catalog 'search', 'start_full'go
This is my attempt to also script the scheduled full index:
When you compose emails for example you want your paths to be absolute, not relative, this little helper function will convert a relative path to an absolute path:
#region Get Absolute Path
///<summary>/// Convert a relative path to an absolute path.
///</summary>///<paramname="relativePath">The path that should be converted,</param>///<returns>Returns the absolute path.</returns>publicstaticstring GetAbsolutePath(string relativePath)
Uri baseUrl = HttpContext.Current.Request.Url;
Uri absoluteUri = new Uri(baseUrl, relativePath);