Posts

Showing posts from December, 2009

SharePoint Excel Web Access Error

Image
"Excel Web Access An error has occurred. Please contact your system administrator if this problem persists." In ShanthaKumar’s Blog

SharePoint WebParts | Browse List Button

Image
You may come to a point where you think it would look a lot better with a browse button with textbox instead of just having a less-intuitive URL textbox. Users never know whether its an absolute, relative to root or relative to web url. So the object is: AssetUrlSelector You can find it in using Microsoft.SharePoint.Publishing.WebControls; You might need to manually browse for the Microsoft.SharePoint.Publishing.dll reference in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI Note: This will only work with MOSS 2007 and not WSS3 since the dll will not be available.

.Net FindControl - find your html controls

Sometimes the FindControl method won't find your control, if its on the masterpage or if its inside a contentplace holder. To fix this: ContentPlaceHolder cph = this.Form.FindControl("ContentPlaceHolder1") as ContentPlaceHolder; HtmlControl myFrame = (HtmlControl)cph.FindControl("iframe01"); myFrame.Attributes["src"] = url_geo; or HtmlControl myFrame = (HtmlControl)this.Master.FindControl("controlid"); Source: http://csharporcas.blogspot.com/2006/05/master-page-find-control.html P.S.: Your iframe may need the runat="server" tag for this to work!

Load Images from binary stream in DataBase

So you have your images in a database, recorded in Binary fields. To render them in .aspx forms, you need to call Response.xxx so all you're page will show only the image. To fix this, you can create a gridview that uses a backup form as column (GetImage.aspx). Download GetImage.aspx Download GetImage.aspx.cs In your main form, your gridview should contain a column to get the images for a specific item id: <Columns>   <asp:imagefield HeaderText="" dataimageurlfield="Id" dataimageurlformatstring='~/GetImage.aspx?id={0}' >     <ControlStyle Width="400px" />   </asp:imagefield> </Columns> Source: http://www.netomatix.com/development/GridViewDisplayBlob.aspx

SharePoint WebPart | Deploy into specified webpart category

In your module xml file, add: <File Path="MyWP.webpart" Url="MyWP.webpart" Type="GhostableInLibrary">      <Property Name="Group" Value="My WebParts" /> </File>

SharePoint | Increase Maximum File Upload Size Limit

Max possible is 2GB Default is 50MB, but uploading files between 20-50MB may cause issues. To change this, we need to configure the web app, iis and web config Mike Henthorn's Post http://mhenthorn.blogspot.com/2009/03/increase-file-upload-size-dont-forget.html Microsoft Issue Coverage http://support.microsoft.com/kb/925083 Check out Bryan Worthy's post http://www.getsharepoint.com/blogs/bw/Lists/Posts/Post.aspx?ID=16

SharePoint 2007 Features | Auto enable themes and others

With a simple feature you can set some automated action to be executed each time a site is created for a given template, and other options too. This is done by creating a site definition. Check out, download and install theme stapler (and theme changer if you don't already have a theme activating feature). Actions can then be customized in file: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\ThemeChangerStaple\Elements.xml Theme Changer Feature (separate download) (Recommended default) Site IDs SP2010 http://www.bfcnetworks.com/sharepoint-2010-site-template-id-numbers/ SP2007 http://www.devexpertise.com/2009/02/06/sharepoint-list-template-ids-and-site-template-ids/ now broken link http://kivati.com/support/kb/Pages/9991.aspx

Recover NTFS private encripted files

So you've repaired your windows (xp) install and sudently you lost access to all your saved documents and files? Easy: 1-Click C: drive 2-Pick "Properties" 3-Go to Tools, "Backups" 4-Make new backup selecting the desired folder to recover 5-Click the backed up bkt file and run wizard to restore the backup 6-At the last screen click "Advanced options" and Deselect all options (like restore whatever permissions) 7-Pick recover to different folder/path (don't use the same, don't use single folder) There you go. All your files accessed and all you need is a Windows Admin account. http://www.technixupdate.com/how-to-recover-lost-data-from-encrypted-ntfs-partition-after-system-format-or-administrator-password-forgot-situation-in-vista-and-xp/

SharePoint Designer 2010 Issues

Image
- Cannot connect to SPD 2010 Site? - Don't have enough permissions? - Not getting "All Sites" and "Masterpages" options? Here's what do do: - Make sure SPD is active in Central Admin options - Add User to Central Admin users - Add user to Web Application And then you have it

Windows Remote Desktop | Change Default Server Port

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\ RDP-Tcp\PortNumber See Decimal value and change it! Default is 3389 http://support.microsoft.com/kb/306759 http://www.raymond.cc/blog/archives/2006/06/11/change-the-listening-port-for-microsoft-remote-desktop-connection/