Time of Update: 2018-12-06
內容查詢組件是一個非常有用的組件。但是使用的時候會出現一些不符合我們的問題。下面的一些文章也許對你來說會有協助。定製內容查詢Web組件(Customize Content Query WebPart)系列一:概述 定製內容查詢Web組件(Customize Content Query WebPart)系列二 :定製常用新聞標題和條目格式外觀 How to: Customize the Content Query Web Part by using Custom Properties
Time of Update: 2018-12-06
在使用SPSiteDataQuery和SPQuery查詢時,當用Query構造查詢語句時,使用Where查詢不資料。語句:"<Where><Eq><FieldRef Name=\"ID\" /><Value Type=\"Text\">11</Value></Eq></Where>"錯誤出在<Value
Time of Update: 2018-12-06
轉自生魚片:SPListItem的Url屬性返回的不是絕對路徑,形式如下面:http://cary/Lists/Discussion/itemtitle這種形式是不能作為連結開啟的,很多時候我們在取到這個item的同時還要得到這個item的url,比如你篩選出列表中指定的資料並發郵件給相關人員的時候,在郵件的內容中就需要有個這個item的連結。Moss中提供了一個PAGETYPE枚舉,具體如下表:名稱 描述 PAGE_DEFAULTVIEW Default view. Value=0.
Time of Update: 2018-12-06
在MOSS代碼中用來提升許可權,類比成網站管理員的許可權,在這過程需要使用者MOSS裡的物件模型裡的SPSecurity.RunWithElevatedPrivileges來進行。SPSecurity.RunWithElevatedPrivileges對象是可以將目前使用者在代碼裡的安全上下文憑據提升類比成當前網站的管理員的許可權運行此代碼。 如第一種情況: //類比提升許可權 SPSecurity.RunWithElevatedPrivileges(delegate { //建立指定網站集
Time of Update: 2018-12-06
在 Web 環境製作圖表(Chart)通常不是一件容易的事,幾年前我就有看到 Dundas 公司開發出一系列非常優秀的圖表元件,只是光購買 for ASP.NET 的元件價格就要 US$699,說貴不貴、說便宜也不是很便宜。但在去年年中的(2007/6/4)時候微軟購買了 Dundas 公司所有的 Dundas Data Visualization 元件版權,並整合進 SQL Server 2008 的 Reporting Services
Time of Update: 2018-12-06
create view alldataas( SELECT top 100000000 d.xtype,d.name N'TableName',a.colorder N'FieldNumber',a.name N'FieldName', (case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '1'else '0' end) N'IsIdentifier',
Time of Update: 2018-12-06
轉自jianyi的部落格SPList EnsureArchiveList( SPList templateList) { SPWeb web = templateList.ParentWeb; SPList list = templateList; SPList archiveList = null; string archiveListTitle = list.Title +
Time of Update: 2018-12-06
就是這樣了下面來看看終點代碼部分 代碼部分主要技術點就是infopath附件分解和對infopath重複表格操作 命名空間引用 usingMicrosoft.Office.InfoPath; using; using.Xml; using.Xml.XPath; using.Windows.Forms; using.Text; 首先是註冊兩個按鈕事件publicvoidInternalStartup { ((ButtonEvent)EventManager.Con
Time of Update: 2018-12-06
一.概念 網站專案管理就是根據特定的規範、在預算範圍內、按時完成的網站開發工作單位。 二.需求分析 項目立項 我們接到客戶的業務諮詢,經過雙方不斷的接洽和瞭解,並通過基本的可行性討論夠,初步達成製作協議,這時就需要將項目立項。較好的做法是成立一個專門的項目小組,小組成員包括:專案經理,網頁設計,程式員,測試員,編輯/文檔等必須人員。項目實行專案經理制。 客戶的需求說明書 第一步是需要客戶提供一個完整的需求說明。很多客戶對自己的需求並不是很清楚,需要您不斷引導和協助分析。曾經有一次,我問客戶:"您
Time of Update: 2018-12-06
經常會出現標題中的錯誤,很多時候不知道是否是安全的更新,即使使用了web.AllowUnsafeUpdates=true;依舊會出現,原來有些是需要使用到site和Application的。所以我現在直接進Application中將Central Administration--->application management---->web application settings-->"turn security validation
Time of Update: 2018-12-06
E文環境提示:Error:System.ArgumentNullException: Value cannot be null.Parameter name: serverContextat Microsoft.Office.Server.SiteContext..ctor(ServerCo ntext serverContext)at Microsoft.Office.Server.SiteContext.get_Current()at
Time of Update: 2018-12-06
Those pesky 'Preserving/Deleting template record with size…' messages are fixed! I've seen a lot of blogs and community forums talking about the 'Preserving template record with size...' and 'Deleting template record with size' messages that are
Time of Update: 2018-12-06
create PROCEDURE [dbo].[sp__windbi$decrypt](@procedure sysname = NULL, @revfl int = 1)AS/*王成輝翻譯整理,轉貼請註明出自微軟BI開拓者www.windbi.com目前這個預存程序只能解密預存程序,至於解密函數、觸發器、視圖的預存程序本網站會進一步關注,調用形式為:exec dbo.sp__windbi$decrypt @procedure,0如果第二個參數使用1的話,會給出該預存程序的一些提示。--版本2.
Time of Update: 2018-12-06
if (item.Attachments.Count > 0) { for (int a = 0; a < item.Attachments.Count; a++) { if (a == 0) { this.Label1.Text = "附件 1:<a href=
Time of Update: 2018-12-06
//設定域值 public static string NavSetValue(XPathNavigator xn, string strXPath,XmlNamespaceManager xnm,string strValue) { try { if (xn != null) { xn.SelectSingleNode(strXPath,
Time of Update: 2018-12-06
SPWeb web = SPControl.GetContextWeb(Context); //擷取當前網站下的所有子網站 SPWebCollection subwebs = web.Webs; foreach(SPWeb wb in subwebs) {....} END 目前使用者為普通讀者身份!!可以看每個子網站下的子網站的子網站。。。 結果:失敗!SPSecurity.RunWithElevatedPrivileges(delegate{ SPWeb web =
Time of Update: 2018-12-06
在SharePoint類比指定使用者身份進行操作的代碼: string siteUrl = "http://ecpe-dev:82/sites/sjs" ; //首先用管理員身份去到某個使用者的Token,必須,非管理員無法類比 SPSite site = new SPSite(siteUrl); //此時使用者為SHAREPOINT\system
Time of Update: 2018-12-06
一、某隻股票的股價從高位跌下來之後,如果連續三天未收複5日均線,最穩妥的做法是,在尚未嚴重“損手斷腳”的情況下,早早退出來。 二、某隻股票的股價跌破20日均線、60日均線或號稱生線的120日均線(半年線)、250日均線(年線)時,一般尚有8%至15%左右的跌幅,還是先退出來觀望為好。當然,如果資金不等急用的話,頂也未嘗不可,但請充分估計未來方方面面可能發生的變化。 三、日線圖上留下從上至下十分突然的大陰線並跌破重要平台時,不管第二天是反彈或者沒反彈,還是收出十字星,都應該拋出手中的貨。
Time of Update: 2018-12-06
Dynamics NAV 的 Classic Client 和 RoleTailored Client是兩種Dynamics NAV的用戶端類型。 其中的RoleTailored是sp1中新添加的用戶端類型。擁有更好的外觀和可定製化功能,並且可以使用Add-in來做擴充開發。 Classic Client和RoleTailored是可同時存在,共同啟動並執行。但新版本中的某些組件不支援Classic
Time of Update: 2018-12-06
聚簇索引與非聚簇索引的本質區別到底是什嗎?什麼時候用聚簇索引,什麼時候用非聚簇索引?這是一個很複雜的問題,很難用三言兩語說清楚。我在這裡從SQL Server索引最佳化查詢的角度簡單談談(如果對這方面感興趣的話,可以讀一讀微軟出版的《Microsoft SQL Server