Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 5

Question: You work as an application developer at Company.com. You are in the process of creating an ASP.NET application using .NET Framework 3.5. Your application contains a Web Page with a DataSourceControl. This control is named KingProducts. This control is bound to a Microsoft SQL Server 2005 table. The primary… Continue reading

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 4

Question: You work as an application developer at Company.com. You are in the process of creating an ASP.NET application that uses Microsoft .NET Framework 3.5. You receive an instruction from management to create a custom-templated server control. To ensure productivity you need to make sure that the child controls of… Continue reading

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 3

Question: You work as an application developer at Company.com. You are in the process of creating an ASP.NET application in .NET Framework 3.5. The application is configured to use Form Authentication. You activate the ASP.NET AJAX authentication service in the application’s Web.config file. Your application contains a Web form with… Continue reading

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 2

Question: You work as an application developer at Company.com. You decide to create an ASP.NET Web application on the companies’ network in Microsoft .NET Framework 3.5. Your application must not allow access to anonymous users but must support users from untrusted domains. What should you do? Your best choice would… Continue reading

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 1

Question: You work as a Web Developer at Company.com. Company.com makes use of Microsoft ASP.NET 3.5. You use this application to create a Web site. The following code exists in a file in the App_Code folder: namespace Company.Providers { public class SessionSiteMapProvider : SiteMapProvider { // Members omitted for brevity… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 15

Question: You write the following code to implement the CompanyClass.MyMethod function. public class CompanyClass { public int MyMethod(int arg) { return arg; } } You need to call the CompanyClass.MyMethod function dynamically from an unrelated class in your assembly. Which code segment should you use? CompanyClass myClass = new CompanyClass();… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 14

Question: You need to create a class definition that is interoperable along with COM. You need to ensure that COM applications can create instances of the class and can call the GetAddress method. Which code segment should you use? public class Customer { string addressString; public Customer(string address) { addressString… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 13

Question: You are developing an application that dynamically loads assemblies from an application directory. You need to write a code segment that loads an assembly named Company1.dll into the current application domain. Which code segment should you use? AppDomain domain = AppDomain.CurrentDomain; string myPath = Path.Combine(domain.BaseDirectory, “Company1.dll”); Assembly asm =… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 12

Question: You create a method that runs by using the credentials of the end user. You need to use Microsoft Windows groups to authorize the user. You must add a code segment that identifies whether a user is in the local group named Clerk. Which code segment should you use?… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 11

Question: You are developing a server application that will transmit sensitive information on a network. You create an X509Certificate object named certificate and a TcpClient object named client. You need to create an SslStream to communicate by using the Transport Layer Security 1.0 protocol. Which code segment should you use?… Continue reading