Qeustion 8You have a SharePoint site collection. The root Web of the site collection has the URL http://intranet.You plan to create a user solution that will contain a Web Part. The Web Part will display the title of the root Web.You write the
下面我們來以一個MyText屬性為例示範如何建立一個自訂屬性,這個例子仍將會用到前面的內容。首先我們要為DependencyObject的屬性聲明一個公有的DependencyProperty,這個屬性是靜態,可以用於資料繫結,聲明代碼:Code highlighting produced by Actipro CodeHighlighter
一:建立Silverlight2 類庫項目 啟動VS2008,選擇建立項目,建立Silverlight2 類庫項目,然後我們添加一個控制項類,輸入新的項目名:MyButton。此類可以繼承自Control類,也可以繼承自其他類比如ContentControl,ItemControl。我們繼承自Button,代碼如下: Code highlighting produced by Actipro CodeHighlighter
Question 11You have a Web page named ShowMessage.aspx.You create a new Web page.You need to display the content from ShowMessage.aspx in an IFRAME on the new Web page. You must achieve this goal by using the minimum amount of effort.What should you
Question 4You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)01 protected void Page_Load(object sender, EventArgs e)02 {03 SPSite site = new SPSite("http://www.contoso.com/default.aspx"); 04
Question 19You create a Feature receiver.You need to hide the Quick Launch navigation bar of a SharePoint site.What should you use?A. the Hidden property of each listB. the Navigation.QuickLaunch.Parent.IsVisible propertyC. the OnQuickLaunch
Question15You are creating an application page that will open a dialog box.The dialog box uses a custom master page. You write the following code segment. (Line numbers are included for reference only.)01 <script type="text/javascript">02
1、內聯方式--即直接在控制項內部利用其屬性進行設定 CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><UserControl x:Class="RemoveTextBoxBorder.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"