Content Preview: rss
65 days ago
This post describes the lifecycle events of a Sharepoint Connectable WebPart wih a single ViewState backed property; On Page Load Constructor OnInit OnLoad ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart) CreateChildControls OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data) SaveViewState Render RenderChildren RenderContents On 1st Postback (PostBack click handler sets ViewState via public Property) Constructor OnInit CreateChildControls OnLoad PostBack click handling ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart) OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data) SaveViewState Render RenderChildren RenderContents On 2nd Postback (PostBack click handler ...
115 days ago
~~ 感謝李小全(David)百忙中協助開發網路相簿網頁組件 ~~ 用途與準備工作說明: --{完成後的結果} -- { 組件說明 } 我們需完成兩個網頁組件並進行連結,功能說明如下: 上方呈現相簿內的所有照片並且可供使用者進行點選,所有點選圖片均再上方直接瀏覽 下方則將相關相簿進行呈現,並可讓使用者進行封面圖片之選擇 上下方網頁組件需進行連結(不使用 SmartPart Or QuickPart) -- { 所需程式說明 } 網頁組件兩支(說明如上述) 共五支 .cs EventHandler 事件處理函式 *1 CSS 網頁組件連結 Middleware -- { MOSS 2007 所需文件庫 } 建立一圖片庫做為存放相簿使用 以資料夾進行相簿分類 -- { 所需工具 } Virtual Studio .NET 2008 CAML Tool EventHandler Installation Tool ~~ 待續後補 2009.08.31 ~~
123 days ago
by Anish M. 2. April 2009 21:08 In IE8, it seems that the Marquee tag isn't supported anymore. Need for a Marquee replacement got me into my first Silverlight endeavour. Basically I've used the DoubleAnimation control to achieve this by altering the"To", "From" and "Duration" property. So, with little modification this can be made to rotate horizontally as well. Marquee.zip(908.92 kb) In Settings.xml, <Images> tag holds the list of images. <Delay> tag is used to set the speed, the images rotate.The <CanvasValue> width and height maps to the outer grid and the <MarqueeValue> maps to the width and height of the listbox inside the grid. <ImageValue> is used to set the width and the height of the image control. The images are stretched to fit. To add the Silverlight control to an aspx page add register tag to the top of the page. Set the Source property of the ...123 days ago
I'd seen references to SPUtility before, and probably even used the object when basing code of blog posts I'd found on the net, but inspiration struct me the other day, and I decided to look it up in the SDK. It is a static object that contains a number of useful functions - it also contains a number of obsolete functions, and some downright weird ones (like SPUtility.HideTaiwan and SPUtility.IsEastAsia strike me as ones that won't be widely used). To access the object, you need to add the following using statement: using Microsoft.SharePoint.Utilities; I had a quick go through the SDK, an the following are what strikes me as some of the more useful functions this object provides (note, I havent used all of these yet, just went through the SDK then googled the functions I thought sounded interesting): SPUtility.FormatDate Allows you to format a given date to any of the SPDateFormat types DateTime curDate = DateTime ...
123 days ago
Posted on 19 July 2007 @ 20:07 in #MOSS 2007 If you need to upload a file into a SharePoint document library through code you can get started with this MSDN article: How to: Upload a File to a SharePoint Site from a Local Folder. In case you need to do the upload the file as an attachment to a custom list using the object model, the approach is slightly different. Adding a file to the list item can be done by accessing the Attachments collection of the SPListIem: //code snippet SPList list = web.Lists[ new Guid ("my list id")]; if (list != null ) { web.AllowUnsafeUpdates = true ; SPListItem item = list.Items.Add(); item[ "Title" ] = "my title"; if (fileAttachment.PostedFile != null && fileAttachment.HasFile) { Stream fStream = fileAttachment.PostedFile.InputStream; byte [] contents = new byte [fStream.Length]; ...



