|
Hi, If anybody have the recent dumps pls mail me. my id is: surkulproductions@hotmail.com
|
Question 1. You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in case a users device does not display the full text of a news item. Which code segment should you use? A. Dim ps As PagerStyle = New PagerStyle()ps.NextPageText = "more >"ps.PreviousPageText = "< back"FormNews.Paginate = True B. FormNews.PagerStyle.NextPageText = "more >"FormNews.PagerStyle.PreviousPageText = "< back"TextViewNews.PaginateRecursive(New ControlPager(FormNews, 1000)) C. FormNews.PagerStyle.NextPageText = "more >"FormNews.PagerStyle.PreviousPageText = "You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class. Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("books/book") Which additional two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.) A. Dim node As XmlNodeFor Each node In nodes node.Attributes(0).Value = "NA"Next node B. Dim node As XmlNodeFor Each node In nodes node.Attributes(1).Value = "NA"Next node C. Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("/genre") genre.Value = "NA"Next node D. Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("@genre") genre.Value = "NA"Next node E. Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("genre") genre.Value = "NA"Next node Answer: A, D Question 7. Your Web site processes book orders. One of the application methods contains the following code segment. Dim doc As New XmlDocument()doc.LoadXml(" Dictionary World Atlas < /book>")You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.) A. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.FirstChild) B. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.SelectSingleNode("discount")) C. doc.RemoveChild(doc.FirstChild) D. doc.DocumentElement.RemoveChild(doc.FirstChild) Answer: A, B Question 8. You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users. The Web application runs as CONTOSO\ASPNET. You deny anonymous access to the application in IIS. You add the following XML segment in the Web.config file. 10 " &_"Dictionary You need to ensure that the application meets the following requirements: It must impersonate the user when it writes data to the file. It must run as CONTOSO\ASPNET when a user does not access the file. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Use the following XML segment in the Web.config file. B. Use the following XML segment in the Web.config file. C. Use the following code segment to access the file. Dim wp As WindowsPrincipal = _CType(HttpContext.Current.User, WindowsPrincipal) Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent() Dim wic As WindowsImpersonationContext = wi.Impersonate()' Access the file herewic.Undo() D. Use the following code segment to access the file. Dim wi As WindowsIdentity = indowsIdentity.GetCurrent()Dim wic As WindowsImpersonationContext = _WindowsIdentity.Impersonate(wi.Token)' Access the file herewic.Undo() Answer: A, C Question 9. You are working on an existing Web site. You need to secure the Web site by redirecting all users to the logon page, Login.aspx. After logging on, users must be sent back to the page that they originally requested. Which code segment should you use? A. In the Web.config file: On each page in the Web site: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Load FormsAuthentication.Initialize() End Sub B. On each page in the Web site: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Load FormsAuthentication RedirectToLoginPage("login.aspx") End Sub C. On each page in the Web site: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Load Response.Redirect("login.aspx") End Sub D. In the Web.config file: Answer: D Question 10. You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page. If Page.User.Identity.Name <> "CONTOSO\Administrator" Then Response.Redirect("login.aspx") End If You are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. In the Web.config file, enable impersonation. B. In IIS, enable anonymous access. C. In IIS, disable anonymous access. D. In the Web.config file, set the authentication mode to Windows. Answer: C, D
Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.